Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Launch full screen action from another action


I have an independant "fullscreen" picture on my website.
On click on this picture, i want to launch my video on full screen (as a click on the fullscreen action embeded in JW Player).

How i can do that ?


PS : I try the following code without succes (the class "full" is on my custum picture)

2 Community Answers


JW Player Support Agent  
1 rated :

There is no built-in functionality to force a player into fullscreen mode. Browsers consider this a security / anti-phishing concern, so the only way to go to fullscreen is with a user clicking on the button.


0 rated :

I find a way :
$(".full").click(function(e){ jwplayer("mediaplayer").setFullscreen().css({width: "100%",height: "100%"});});

This question has received the maximum number of answers.