[Webkit-unassigned] [Bug 183308] Calling removeTrack with RTCRtpSender does not send SenderTrack to null

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 2 18:08:46 PST 2018


https://bugs.webkit.org/show_bug.cgi?id=183308

--- Comment #1 from Thomas Mullen <thomasmullendesign at gmail.com> ---
Simple way to reproduce:

```
var config = {
  "iceTransports": 'all',
  "iceServers": [{
    "urls": "stun:global.stun.twilio.com:3478?transport=udp"
  }]
}

var pc = new RTCPeerConnection(config)
var getUserMedia = (navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia).bind(navigator)

getUserMedia({
  video: true,
  audio: true
}, function(stream) {
  var track = stream.getTracks()[0]
  var sender = pc.addTrack(track, stream)
  pc.removeTrack(sender)
  console.log(sender.track) // should be null
}, function(err) {
  throw err
})
```

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180303/18aff53f/attachment.html>


More information about the webkit-unassigned mailing list