W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > May 2017

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

From: Andreas Pehrson via GitHub <sysbot+gh@w3.org>
Date: Tue, 09 May 2017 16:40:29 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-300225503-1494348028-sysbot+gh@w3.org>
> - 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

This archive was generated by hypermail 2.4.0 : Saturday, 6 May 2023 21:19:40 UTC