[Webkit-unassigned] [Bug 260345] New: navigator.mediaDevices.getUserMedia() requires playsinline on (hidden) video element to work on iOS
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Aug 17 06:30:07 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=260345
Bug ID: 260345
Summary: navigator.mediaDevices.getUserMedia() requires
playsinline on (hidden) video element to work on iOS
Product: WebKit
Version: Other
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Media
Assignee: webkit-unassigned at lists.webkit.org
Reporter: thakis at chromium.org
Repro: https://github.com/nico/hack/blob/1e234e3a12a82d/webgl/cam.html , but the simpler https://jsfiddle.net/kw8fbcma/4/ probably also works if you delete the `video.playsInline = true;` on line 7.
WebKit/iOS is the only engine that requires `playsinline` for this to work. Without it, Safari/iOS only shows the first frame. With it, it shows a continuous webcam feed (with some color effect on top).
Things work fine in Safari/Mac (version 16.5, default on macOS 13.4), in Firefox/Mac, and in Chrome/Mac and Chrome/Android: There, you get a continuous webcam feed even without `playsinline`.
Given that the video element isn't even visible, maybe `playsinline` could be made not required for navigator.mediaDevices.getUserMedia(), for better web compat? Maybe even if navigator.mediaDevices.getUserMedia() goes to a visible video element?
(Note that I'm filing this as a private person, even though I use my old @chromium.org webkit.org account.)
--
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/20230817/c78dba6d/attachment.htm>
More information about the webkit-unassigned
mailing list