Whenever stopRenderVideo is called, video stops and a black box appears in its place.
I am rendering multiple videos on the same canvas. When a user leaves the meeting, stopRenderVideo(canvas, user_id) is called for that user and we are seeing black box instead of transparency in place of the video.
stream.clearVideoCanvas did not help.
When I tried to get the context of the canvas to clear the rectangle, I got an error saying, “Cannot get context from a canvas that has transferred its control to offscreen”.
So, how do I get rid of that black box.
Which Web Video SDK version?
To Reproduce(If applicable)
Call stopRenderVideo and you should be able to see it.
This is happening on firefox and chrome on ubuntu and mac.