Answer the question
In order to leave comments, you need to log in
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();
}
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question