These are chat archives for andyet/SimpleWebRTC

3rd
May 2017
notasgoodasyou
@notasgoodasyou
May 03 2017 21:50
@StudioInteractive Basically when they click on a "Stop" button, it will execute stopLocalVideo(). The problem with this is that it doesn't notify all the peers that the user had stopped the broadcast so all the peers end up with a video element that's frozen. I had tried your suggestion of peerStreamRemoved but this also has a similar effect as videoRemoved. Both of these events seem to fire only when the peer reloads the page and not when the user clicks "Stop" button.
notasgoodasyou
@notasgoodasyou
May 03 2017 22:10
@StudioInteractive also is there a way to close a peer's stream? Let's say 5 peers are in a room and you only want to close one of the peer's video stream, how would you do that? I tried using javascript to remove the video element but it looks like I am still downloading their stream even though the video element is removed.