# setVirtualForeground does not work after removing it

**URL:** <https://devforum.zoom.us/t/setvirtualforeground-does-not-work-after-removing-it/88663>\
**Category:** Zoom Apps\
**Created:** [May 19, 2023, 5:07am UTC](https://devforum.zoom.us/t/setvirtualforeground-does-not-work-after-removing-it/88663 "2023-05-19T05:07:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dev23](https://avatars.discourse-cdn.com/v4/letter/d/67e7ee/32.png) [@dev23](https://devforum.zoom.us/u/dev23)\
**Post date:** [May 19, 2023, 5:07am UTC](https://devforum.zoom.us/t/setvirtualforeground-does-not-work-after-removing-it/88663/1 "2023-05-19T05:07:26Z")

</div>

**Zoom Apps Configuration**  
_React_

**Description**  
\*I am using setVirtualForeground() to add virtual foreground image then using removeVirtualForeground() to remove it. After the image is removed from video, then I called setVirtualForeground() again, the image is not added. I notice that ‘The zoom client encountered an error while processing the request!’ error shows up after removeVirtualForeground() is called \*

**Error?**  
_The zoom client encountered an error while processing the request!_

**Troubleshooting Routes**  
_The troubleshooting attempt types you’ve already exhausted, including testing with the appropriate sample app (found on [Zoom · GitHub](https://github.com/zoom))._

**How To Reproduce**  
\*

1. setVirtualForeground()
2. removeVirtualForeground()
3. call setVirtualForeground() with the same imageData in step 1

-
