Should keep playing with the full-screen settings from previous page
AugustusZ opened this issue · comments
Yankuan Zhang commented
append GET parameter fullscreen=
true
/false
constructed from document.webkitIsFullScreen
Yankuan Zhang commented
if (wasFullscreeen()) {
playerElement.webkitRequestFullscreen();
}
leads to
Failed to execute 'requestFullscreen' on 'Element': API can only be initiated by a user gesture.
Yankuan Zhang commented
For (Chrome) security reasons webkitRequestFullscreen()
cannot be called or executed automatically--there must be an interaction from the user first, such as button click, keydown/keypress etc.