| Summary: | Picture-in-Picture API requestPictureInPicture() method fails in webview and some other circumstances | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Evan <evandesmaraissc> |
| Component: | Media | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW --- | ||
| Severity: | Normal | CC: | eric.carlson, jean-yves.avenard, jer.noble, mattias.bergstrom, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 16 | ||
| Hardware: | iPhone / iPad | ||
| OS: | iOS 16 | ||
|
Description
Evan
2023-02-22 12:51:22 PST
What browser do you have selected in Gmail for links to open in? Safari? (In reply to Sam Sneddon [:gsnedders] from comment #1) > What browser do you have selected in Gmail for links to open in? Safari? Safari. 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. |