Hey @tommy and @vic.yang ,
When screen share is already going on and I start video call as well then I’m getting below mentioned error, and after this error users video doesn’t render.
Browser Console Error
f7be4d41-54d4-4be0-8b9f-9c8a36354d96:1 Uncaught TypeError: Cannot read properties of undefined (reading ‘forEach’)
at f.Clear_OffScreenCavas (f7be4d41-54d4-4be0-8b9f-9c8a36354d96:1:190959)
at f7be4d41-54d4-4be0-8b9f-9c8a36354d96:1:163236
Which Web Video SDK version?
1.3.0
Any idea on what could be the reason of this issue? and how can I avoid such issues?
So, when there is only screenshare on then I was not rendering video canvas, and only If user start video call then video canvas was getting rendered (or constructed). This destruction and reconstruction of video canvas was I think causing OffScreenCavas issue.
Now, I just hide video canvas when there only screenshare on.
Maybe you can also explicitly mention this somewhere in the Video SDK guide that we need to have both video canvas and screen share canvas rendered every time in the application to avoid destruction and reconstruction of canvases.