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?