sindresorhus / screenfull

Simple wrapper for cross-browser usage of the JavaScript Fullscreen API
https://sindresorhus.com/screenfull
MIT License
7.08k stars 698 forks source link

webkitrequestfullscreen has been deprecated. #139

Open kingofwhales opened 5 years ago

kingofwhales commented 5 years ago

I was wondering why the demo isn't working on my IOS 12.1.4. It appears that now the event name for entering fullscreen is "webkitEnterFullscreen".

  1. webkitrequestfullscreen: https://developer.apple.com/documentation/webkit/domelement/1476160-webkitrequestfullscreen

  2. webkitEnterFullscreen: https://developer.apple.com/documentation/webkitjs/htmlvideoelement/1633500-webkitenterfullscreen

tohvanah commented 5 years ago

I see the same behavior: screenfull.enabled is false on mobile Safari iOS 12.3.1. The demo fails to work. Using webkitEnterFullscreen in my testing works.

mustafaekim commented 4 years ago

any update on how to make fullscreen works on IPADs?