After leaving the zoom call, when I join the same sesssion again I am getting error: subscribe video counts greater than maximum size (1) for user who didn’t left the session and not able to see the video feed for the joining participant.
stream.stop() - I’m not sure if this is referencing the MediaStream object, but stop isn’t a method here - is this what you were wanting to call here?
I’m not 100% sure that calling getMediaStream() here is getting the same stream you already have or creating a new one (again - not sure - but will test that out later)? If you already have the stream object referenced, use the same one and see if that helps.
Stopping the rendered video is not going to remove it - you would also need to redraw the screen without the removed video.
Let me know if this helps - this isn’t an error I’ve come across yet - but will try to reproduce it if I can.
Usually, the issue arises because the page doesn’t enable SharedArrayBuffer, and the enforceMultipleVideos option is not specified in the client.init method.
In this situation, a canvas can only render one video. The simplest solution would be to set enforceMultipleVideos to true to address your issue.