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

> > Well, assuming that setting the remote description removes the track from the correct streams (it doesn't right now), you'd be able to listen for the streams' "removetrack" event.
> @taylor-b If we did this then we wouldn't need a trackremoved event, right?

Iif we followed that pattern we would get a addstream event for every new stream and could listen for stream.onremovetrack. Surfacing both "a track was added" and "a track was removed" at the peerconnection level makes sense imo. Or is at least consistent if we want the first event.

(I agree that it is quite surprising that SRD doesn't remove the track from streams though... well, that can be fixed)

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

Received on Tuesday, 9 May 2017 05:50:10 UTC