[Webkit-unassigned] [Bug 252765] Picture-in-Picture API requestPictureInPicture() method fails in webview and some other circumstances
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Feb 23 08:19:41 PST 2023
https://bugs.webkit.org/show_bug.cgi?id=252765
--- Comment #3 from Evan <evandesmaraissc at gmail.com> ---
It appears that requestPictureInPicture() is also unsupported if the video element source is camera (via getUserMedia()).
This is true regardless of whether or not the request is made in a webview or in pure Safari.
This can be reproduced with this example URL:
https://ejdesmarais.github.io/pictureInPictureTester/
1. Go to the above link in Safari (not in a webview)
2. Allow camera permission when asked
3. Click the "PiP (Web API)" button. This calls requestPictureInPicture on the video element.
4. Observe the NotSupportedError in the console log, or on the screen.
5. Click the 'Use mp4 instead' button. This will reload the page and use a mp4 as the video source instead of the GUM source.
6. Click the "PiP (Web API)" button. Picture-in-picture will activate as expected.
--
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/20230223/5ff715ce/attachment-0001.htm>
More information about the webkit-unassigned
mailing list