setVirtualForeground sometimes leaks original video

Our app may, in its operation, invoke setVirtualForeground serially in back-to-back calls without ever calling removeVirtualForeground.

Unexpected behavior: we periodically see a whole frame of video without any virtual foreground.

Expected behavior: I expect the virtual foreground to be managed such that the new image is replaced between video frame updates.

Here is our use case to help make clear what’s happening. The user may select to display a timer as an overlay on their video. The timer shows a new image with each second that passes. Sometimes, for likely just one frame but maybe two, the user’s full video displays between the old time’s foreground and the new time’s foreground.

I expect back-to-back calls to setVirtualForeground to be seamless and never show the user’s video in the area covered by the virtual foreground.

I attempted to open a support ticket, as this seems to be a product defect. It was closed with the below message, so I am posting a request for help in the forum.

Our Technical Support team assists with product-level defects. We have confirmed this issue is configuration-related and not within the scope of your account’s Developer Support Plan, as such this case will be closed.

For help with developer configuration issues, custom solutions, custom integrations, or feature requests, please visit our Developer Forum where Zoom Developers and community members are available to assist you.