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


Hello,

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 ?

Thanks

PS : I try the following code without succes (the class "full" is on my custum picture)
$(".full").click(function(e){
$(".jw-icon-fullscreen").trigger("click");
});

2 Community Answers

Todd

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.

aurelien.pellet.externe

User  
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.