[Webkit-unassigned] [Bug 149386] When I check document.webkitFullscreenElement it always returns undefined if I have a video object in fullscreen. It should return the video element.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 22 06:24:14 PDT 2015


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

--- Comment #3 from Raul Jimenez <elecash at gmail.com> ---
(In reply to comment #2)
> (In reply to comment #1)
> > The Fullscreen API (and thus document.webkitFullscreenElement) is not
> > supported on iOS.
> 
> Extracted from Apple documentation:
> 
> "The document.webkitFullscreenElement property contains the element that is
> in full-screen mode. Check if this property is defined to determine if the
> user is currently in full-screen mode. The document.fullscreenEnabled
> property detects whether the browser supports the full-screen API, not
> whether an element is currently full-screen."
> 
> https://developer.apple.com/library/safari/documentation/AudioVideo/
> Conceptual/Using_HTML5_Audio_Video/ControllingMediaWithJavaScript/
> ControllingMediaWithJavaScript.html

Ok, that seems the Safari Desktop reference, not Safari iOS reference.

Then, it's not possible to detect if a video element is in fullscreen mode with JavaScript?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150922/1effe0a8/attachment.html>


More information about the webkit-unassigned mailing list