Re: [webrtc-pc] Do we need a "trackremoved" event?

> - Only Chrome fires removetrack on the remote stream.

Firefox doesn't implement the "removetrack" event on `MediaStream`. When I implemented "addtrack" the spec didn't mention that tracks should be removed (per [1]), and so "removetrack" didn't have any users. See [2] for the full background.


> - Firefox leaves old tracks in the remote stream until a subsequent renegotiation adds tracks to it!

That's wrong I'm afraid. Firefox passes a new stream on the remote side with the new tracks in it. It happens to have the same id as the old stream. I updated your fiddle to show this: https://jsfiddle.net/pehrsons/xrwsp7o9/7/


[1] https://w3c.github.io/webrtc-pc/archives/20160513/webrtc.html#processing-remote-mediastreamtracks
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=1208328#c2

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

Received on Tuesday, 9 May 2017 16:40:36 UTC