H
H
HeBonpoc2014-07-24 18:42:55
YouTube
HeBonpoc, 2014-07-24 18:42:55

Youtube player api: how to make your player full screen?

https://developers.google.com/youtube/js_api_reference
Not written on this page. Is there really no such possibility?
I used this code:

$('#fs').click(function(){
  if (ytplayer.requestFullScreen) {
  ytplayer.requestFullScreen();
  } else if (ytplayer.mozRequestFullScreen) {
  ytplayer.mozRequestFullScreen();
  } else if (ytplayer.webkitRequestFullScreen) {
  ytplayer.webkitRequestFullScreen();
  }
});

But in opera 12 it doesn't work at all. And in the new opera it unfolds, but the video remains in the center of the screen of the same size as it was.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question