Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

Toggle the cinema mode on Youtube with Javascript

$
0
0

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: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:

Cinema mode in the Inspector

Is there a way to trigger the click event?


Viewing all articles
Browse latest Browse all 3831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>