[Webkit-unassigned] [Bug 172051] New: `webkitSetPresentationMode('picture-in-picture'); ` (PiP) not working on "blob:" video sources

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 12 14:27:32 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=172051

            Bug ID: 172051
           Summary: `webkitSetPresentationMode('picture-in-picture');`
                    (PiP) not working on "blob:" video sources
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Macintosh
                OS: macOS 10.12
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Media Elements
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: KZeni1 at gmail.com

Checking YouTube (which uses blob: for their videos now) shows that you can use `document.getElementsByTagName('video')[0];` in Safari's console on a video player page to obtain the correct video element without issue. However, using `document.getElementsByTagName('video')[0].webkitSetPresentationMode('picture-in-picture');` at that point returns "undefined" and the video is not turned into a Picture-in-Picture (PiP).

Meanwhile right-clicking the YouTube video player (to get the context menu for the video element to show) is able to turn the video into a Picture-in-Picture without issue. I'm guessing there's a bug when it comes to the `webkitSetPresentationMode('picture-in-picture');` command being executed on video elements with a `blob:` url as it's source.

-- 
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/20170512/83fc3bb2/attachment.html>


More information about the webkit-unassigned mailing list