Video is not rendering (black) when more than 1 participant starts his video in Firefox browser in latest SDK version and In Firefox browser console we can see below error:
reason: "subscribe video counts greater than maximum size (1)" type: "INVALID_OPERATION"
(Its getting thrown from stream.renderVideo )
Same case is happening If one user in Chrome (or any other browser) & other in Firefox and both user tries to start their videos then also Firefox is throwing this error.
Browser Console Error reason: "subscribe video counts greater than maximum size (1)" type: "INVALID_OPERATION"
Which Web Video SDK version?
Web Video SDK 1.2.5
Device:
Device: Macbook Pro
OS: macOS 11
Browser: Firefox
Browser Version: 99.0.1 (64-bit)
Additional context
This issue is happening in the 1.2.5 version of SDK only.
Did you enable the Cross-Origin Isolated on your site? If the SharedArrayBuffer is unavailable on the site, only one video can be rendered on the same canvas unless enabled the enforceMultipleVideos option in the init method.
I had this problem when clearing the canvas before calling stopRender video, then I didn’t remove the canvas but just set display:none
Anyway, I used one canvas per user and all canvas was paused when I had 5-6 participants. For now, I just use only one canvas, rendering by X, Y and it works fine.
If isSupportMultipleVideos returns false, please add these lines to nginx header