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

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