close rtcp connection when browser tab closes#353
Conversation
|
Super cool catch! This would be great to add, but a little change to it. I would advise on using the window.addEventListener and window.removeEventListener. I can create a branch and implement it myself if that is easier for you. Or else, if you could get your fork up-to-date with the current release and make the changes, I can review and merge this |
|
Where would i add/remove the listener? Same useEffect call where the change is now? And remove in cleanup? Sorry not too familiar with react/frontend in general. |
|
No worries! |
|
Updated PR, thanks for the tips! |
|
@Endeavourl - Awesome! Thanks for contributing! |
server continues sending stream to client for ~30s after the tab has been closed
this fixes that (or is my attempt at it anyway)