readium / readium-js-viewer

👁 ReadiumJS viewer: default web app for Readium.js library
BSD 3-Clause "New" or "Revised" License
553 stars 186 forks source link

How to make epub book opens in full screen mode #550

Closed mahag closed 8 years ago

mahag commented 8 years ago

What are the changes that I should apply into readium-js-viewer_all_LITE.js in order to make book appear in full screen mode once the index.html loads? As if i need to trigger buttFullScreenToggle once page loads. I tried to add the js document.getElementById('buttFullScreenToggle').click(); but didnt work

sage-IT commented 8 years ago

Im having the same issue but mine is with iframe and allowfullscreen. I embedded my reader into my site and i thought allowing full screen will make the full screen button appear but it doesnt. I know its not my code because I tested this with youtube and some other iframes and it worked fine. I also tried this on several different browsers. Safari, IE and chrome

danielweck commented 8 years ago

mahag, the full screen API has a security policy that requires user interaction in order to prevent malicious use of content that occupies the entire screen. So programmatic toggling is not recommended.

https://github.com/readium/readium-js-viewer/issues/562