W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > February 2018

Re: [webrtc-pc] need to clear [[AssociatedMediaStreams]] in removeTrack?

From: Taylor Brandstetter via GitHub <sysbot+gh@w3.org>
Date: Wed, 21 Feb 2018 19:27:09 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-367441697-1519241227-sysbot+gh@w3.org>
> Why should the stream association be tied to the (local) transceiver?

Because there's a 1:1 mapping between local transceiver and remote track. That's just how the transceiver/receiver/track object model ended up, to support early media and replacing tracks.

> If you let removeTrack() remove the track and clear the streams list, you let addTrack/removeTrack-based applications continue to behave consistently

That will happen without clearing `[[AssociatedMediaStreams]]`, because the track will be removed from the stream on the *remote* side after SDP exchange. And a subsequent `addTrack` will use a new m= section, so it can be part of a different stream.

So I don't see any problem that clearing `[[AssociatedMediaStreams]]` would solve. It would just render a transceiver permanently stream-less.

GitHub Notification of comment by taylor-b
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1756#issuecomment-367441697 using your GitHub account
Received on Wednesday, 21 February 2018 19:27:14 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:22:01 UTC