AugustusZ / Dnvod-Ad-Remover

A tool to remove ad on www.dnvod.tv

Home Page:https://augustusz.github.io/Dnvod-Ad-Remover/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Should keep playing with the full-screen settings from previous page

AugustusZ opened this issue · comments

append GET parameter fullscreen= true/false constructed from document.webkitIsFullScreen

	if (wasFullscreeen()) {
		playerElement.webkitRequestFullscreen();
	}

leads to

Failed to execute 'requestFullscreen' on 'Element': API can only be initiated by a user gesture.

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.