[Webkit-unassigned] [Bug 260787] New: Cannot recover video play when set srcObject to null
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Aug 28 03:10:32 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=260787
Bug ID: 260787
Summary: Cannot recover video play when set srcObject to null
Product: WebKit
Version: Safari 17
Hardware: Mac (Intel)
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebRTC
Assignee: webkit-unassigned at lists.webkit.org
Reporter: seimor at 126.com
CC: youennf at gmail.com
At safari 17, I encounter a problem:
When I capture video-stream from local camera, and set it to video's srcObject
The video play normally
Then I set srcObject to null and then set stream back
The video will not play.
----------------------------------------------
You can reproduce it at webrtc sample website.
1. Open : https://webrtc.github.io/samples/src/content/getusermedia/gum/
2. Click open camera button
3. Open dev-tools
4. Run code: const video = document.querySelector('video')
5. Run code: video.srcObject = null
6. Run code: video.srcObject = stream
Finally, The video will not play even if you call video.play(). But it is fine at safari older version(such as safari 16)
Thanks.
--
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/20230828/ba1489a4/attachment.htm>
More information about the webkit-unassigned
mailing list