RESOLVED CONFIGURATION CHANGED 172761
Crash on resetting video.srcObject after replaceTrack
https://bugs.webkit.org/show_bug.cgi?id=172761
Summary Crash on resetting video.srcObject after replaceTrack
Andrew Morris
Reported 2017-05-31 11:09:05 PDT
When using .replaceTrack on the RtcRtpSender, to update the local video I also used .removeTrack and .addTrack on the local stream. In Firefox I found it was sometimes necessary to do `video.srcObject = video.srcObject;` to make it display the new video properly. When I ran the same code on WebKit, it crashed. (Note: It does work fine for me without resetting the srcObject in WebKit though.) I created this jsbin based on the basic RTCPeerConnection webrtc sample to demonstrate the issue: https://output.jsbin.com/qewizecate (Click 'Start', 'Call', check 'Refresh srcObject', click 'Change Video'.)
Attachments
Andrew Morris
Comment 1 2017-05-31 15:01:22 PDT
Ah the jsbin expired, here's one that should last: https://output.jsbin.com/doweto
Radar WebKit Bug Importer
Comment 2 2017-05-31 15:07:45 PDT
Jon Lee
Comment 3 2017-06-13 19:15:54 PDT
I cannot reproduce this on STP 32.
Note You need to log in before you can comment on or make changes to this bug.