I am trying to enable the cinema mode on Youtube using the Youtube Player API. I can do things such as playing the video and changing the volume:
myPlayer = document.getElementById('movie_player')myPlayer.playVideo()myPlayer.setVolume(80)(I typed these lines in the Firefox console)
But I can't find a function to enable the Cinema mode:
Does anybody have an idea?
EDIT:
I also looked at the Local Storage and Session Storage with the Firefox Storage Inspector but I didn't see any change when I toggled the Cinema mode.
EDIT 2:
I found the code that corresponds to the button in the Inspector:
Is there a way to trigger the click event?
