Bug 178262

Summary: webkitSupportsPresentationMode() return false where supported
Product: WebKit Reporter: Massimiliano Mura <massimiliano.mura>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: ap, dino, eric.carlson, graouts, jeremyj-wk, jer.noble
Priority: P2    
Version: Safari 10   
Hardware: Mac   
OS: Unspecified   

Massimiliano Mura
Reported 2017-10-13 08:10:22 PDT
webkitSupportsPresentationMode('picture-in-picture') return FALSE where picture in picture should be supported Bug reproduced on: - macOS Sierra 10.12.26 -- Safari 10.1.2 - macOS High Sierra 10.13 -- Safari 11.0
Attachments
Alexey Proskuryakov
Comment 1 2017-10-13 09:33:57 PDT
Could you please provide a complete test case? This works for me. Specifically, I get "true" when I open https://www.apple.com/apple-events/september-2017/, and execute this code in Web Inspector console: document.getElementsByTagName("video")[0].webkitSupportsPresentationMode('picture-in-picture')
Massimiliano Mura
Comment 2 2017-10-16 03:24:56 PDT
There was an issue on our side, during the check the video was not loaded yet. Thank you, Massimiliano
Note You need to log in before you can comment on or make changes to this bug.