I can't seem to figure out which element should I add the event listener to for it to work on iOS, I'm listening to these events
['webkitfullscreenchange', 'mozfullscreenchange', 'fullscreenchange', 'MSFullscreenChange'];
and listening on both document
and the element you pass to new YT.Player()
, both are firing just fine on desktop browsers as well as android browsers, but neither fires on iOS (chrome or safari, doesn't matter).
You can check it live here, at the bottom http://youtubeplayer.fxck.cz/ -1, 1, 2, 3
are the standard youtube player events, 1337 is fullscreenchange
from the element, 1338 is fullscreenchange
from document
.