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

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

From: henbos via GitHub <sysbot+gh@w3.org>
Date: Mon, 26 Feb 2018 09:29:58 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-368439795-1519637397-sysbot+gh@w3.org>
When I redefined legacy removeStream() on top of RTP Media API for M66 (https://chromium-review.googlesource.com/c/chromium/src/+/899346), I implemented it as:
```
for (track : stream.getTracks()) {
  sender = sender in getSenders() with track == track and
           [[AssociatedMediaStreams]] == [stream]
  removeTrack(sender)
}
Stop observing tracks being added/removed to stream
```

-- 
GitHub Notification of comment by henbos
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1756#issuecomment-368439795 using your GitHub account
Received on Monday, 26 February 2018 09:30:29 UTC

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