Summary: | Calling removeTrack with RTCRtpSender does not set SenderTrack to null | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Thomas Mullen <thomasmullendesign> | ||||
Component: | WebRTC | Assignee: | youenn fablet <youennf> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | achristensen, commit-queue, eric.carlson, webkit-bug-importer, youennf | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | Safari 11 | ||||||
Hardware: | Mac | ||||||
OS: | macOS 10.13 | ||||||
Attachments: |
|
Description
Thomas Mullen
2018-03-02 18:07:57 PST
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 }) ``` Created attachment 335641 [details]
Patch
Comment on attachment 335641 [details] Patch Clearing flags on attachment: 335641 Committed r229587: <https://trac.webkit.org/changeset/229587> All reviewed patches have been landed. Closing bug. |