I am a beginner in Javascript.
I have two buttons (start and stop) controlling the flow of mediastream using WebRTC. How could I create a event handler for stop button, which would stop the mediastream.
I am a beginner in Javascript. I have two buttons (start and stop) controlling
Share
The only reliable way I’ve found to do this is to change the
srcattribute to empty (or to some other URL).Once you’ve changed the URL, the media will stop downloading in the background.