Re: [webrtc-pc] Spec-compliant way to get remote streams and tracks?

I do think it's important though that we remove remote tracks from their remote stream when they end, and that we end remote tracks when they're renegotiated away like [Chrome does today](https://jsfiddle.net/jib1/xrwsp7o9/). We're discussing this in https://github.com/w3c/webrtc-pc/issues/1161#issuecomment-300215486. That way people can use `pc.ontrack` combined with `track.onended` to see a track come and go, or even use `remoteStream.onaddtrack` and  `remoteStream.onremovetrack` on the stream they picked up from the first `track` event.

-- 
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1182#issuecomment-304165072 using your GitHub account

Received on Friday, 26 May 2017 01:14:26 UTC