owt-client-javascript
owt-client-javascript copied to clipboard
Failed to construct 'peerconnection', cannot create so many peerconnections
Failed to construct 'peerconnection', cannot create so many peerconnections
Scene:
When the browser client constantly switches the resolution and subscribes again, the created peerconnection seems to have never been released, but I explicitly called the publication. Stop () method. This problem causes too many peerconnections to re subscribe to new streams;
Help to look at this problem. Thank you
There is a limitation of the max number of PeerConnection
s. Please try applyOptions
if you want to update resolution.
Hi @jianjunz , Even I faced this problem recently. When I connected to multiple rooms at different timings using the same browser and tab, end of the day when I tried to connect another room, this error occurred, when I closed the tab and reopened in another tab it worked. In my application, I used to subscribe to the stream whenever it is visible in the UI/whenever it is required, so subscribing and unsubscribing the streams will happen frequently, this practice will cause this error frequently ??
Please help.
Thank you.