Issue:
I am trying to create my own html page to display the webrtc video. It is working well but the only problem that i have is it is always on. I would like to add a toggle button to start the webrtc connection and close it to save the bandwidth. I was able to add a toggle button to have it paused at the loading of the page and start with the toggle button but when i try to close it does not close the video. i can still see the video even after closing the data channel
Issue: I am trying to create my own html page to display the webrtc video. It is working well but the only problem that i have is it is always on. I would like to add a toggle button to start the webrtc connection and close it to save the bandwidth. I was able to add a toggle button to have it paused at the loading of the page and start with the toggle button but when i try to close it does not close the video. i can still see the video even after closing the data channel
Code:
Expected Behaviour: to be able to stop bandwidth consumption on the server side with the toggle off