Webrtc stream won't stop publishing

infinascape

New Member
Hello, I have a webrtc setup where the user can start/stop a live stream with buttons. The first time they click the start button, .publish() is called and the STREAM_STATUS.PUBLISHING section of code works great. Then if they click the stop button, .stop() is called and the STREAM_STATUS.UNPLUBLISHED section works great. However, if they start a second time, the steam publishes again fine, but if they try to stop it a second time, nothing happens. The stream keeps publishing. STATUS.UNPUBLISHED never triggers. It's as if .stop() doesn't work more than once. Any idea on what is going on?
 

infinascape

New Member
The issue doesn't reproduce in the example, but I should have clarified that I am not doing webrtc publish to webrtc play. I'm doing webrtc publish to HLS play, if that makes a difference. I will still send along the code. I'm currently testing on Windows 8 Firefox 87, android chrome 89,
and IOS 14 Safari.
 
Top