Bug 172761
Summary: | Crash on resetting video.srcObject after replaceTrack | ||
---|---|---|---|
Product: | WebKit | Reporter: | Andrew Morris <andrew> |
Component: | Media | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED CONFIGURATION CHANGED | ||
Severity: | Normal | CC: | eric.carlson, jonlee, webkit-bug-importer, youennf |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Local Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Andrew Morris
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Andrew Morris
Ah the jsbin expired, here's one that should last: https://output.jsbin.com/doweto
Radar WebKit Bug Importer
<rdar://problem/32496861>
Jon Lee
I cannot reproduce this on STP 32.