xqq / mpegts.js

HTML5 MPEG2-TS / FLV Stream Player
Apache License 2.0
1.68k stars 214 forks source link

'RuntimeException: undefined' when destroying player #197

Open debashishVaaan opened 3 months ago

debashishVaaan commented 3 months ago

If I create a player and destroy it before the connection to the websocket is complete then I get 'RuntimeException: undefined' in the websocket-loader.js file at line 142. I am building a livestream application and often times users change cameras rapidly even before the current one is loaded and then it throws this error.

Screenshot (94)

debashishVaaan commented 2 months ago

If I make changes in websocket-loader.js to not throw this error then I start getting errors various other MediaSource errors

debashishVaaan commented 1 month ago

Switched from Websockets to http2, now no longer facing the issue.