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

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

From: jan-ivar via GitHub <sysbot+gh@w3.org>
Date: Thu, 01 Feb 2018 18:13:58 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-362353997-1517508838-sysbot+gh@w3.org>
@fippo It shouldn't, because the stream association is still tied to the transceiver. E.g. If I then do
await sender.replaceTrack(trackB);
sender.direction = "sendrecv";
Then remotely (after renegotiation) the receiver.track would again pop up in the same-id remote stream.

Confused? See https://github.com/w3c/webrtc-pc/issues/1758 which I just filed.

What I think is true however, is that we probably don't need to keep a reference to the streams themselves, just their ids. Since keeping a stream open has side-effects (local camera staying on) that seems like an improvement (remember what's being sent may come from an entirely different stream).

GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1756#issuecomment-362353997 using your GitHub account
Received on Thursday, 1 February 2018 18:14:02 UTC

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