[Webkit-unassigned] [Bug 174327] Adding, removing, and then adding back same MediaStreamTrack throws InvalidAccessError
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Apr 17 11:36:32 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=174327
--- Comment #2 from Mark Roberts <mroberts at twilio.com> ---
Here is a potential workaround: instead of just calling `removeTrack`, call `replaceTrack(null)` on the RTCRtpSender first. For example:
sender.replaceTrack(null)
pc.removeTrack(sender)
If you do this and then call at least `createOffer` and `setLocalDescription`, then you can remove and add back the same MediaStreamTrack.
--
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/20180417/5f68e805/attachment.html>
More information about the webkit-unassigned
mailing list