On iOS devices the fullscreen API is not working for all elements. Requesting fullscreen support for the whole document is not available. But support for the video element is supported via the webkitSupportsFullscreen attribute.
It would be nice if screenfull has an isEnabled(element) method so I can check for certain elements and screenfull.request(elem) is working on all platforms.
Problem:
On iOS devices the fullscreen API is not working for all elements. Requesting fullscreen support for the whole document is not available. But support for the video element is supported via the
webkitSupportsFullscreen
attribute.https://developer.apple.com/library/safari/documentation/AudioVideo/Reference/HTMLVideoElementClassReference/HTMLVideoElement/HTMLVideoElement.html#//apple_ref/javascript/instp/HTMLVideoElement/webkitSupportsFullscreen
Possible solution:
It would be nice if screenfull has an
isEnabled(element)
method so I can check for certain elements andscreenfull.request(elem)
is working on all platforms.