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

Exit Fullscreen programmatically?


So I understand there is no API to enter fullscreen mode (due to phishing scams etc), but is there a way to make the player EXIT fullscreen mode?

(I've tried various things like stop(), remove(), resize(), and hiding the parent container but nothing seems to work. I read somewhere that when the video completes, it kicks it out of fullscreen, but I'm either displaying a live stream or a "no video available" mp4 file with the "repeat" setup option set to true, so it never completes.)

Thanks.

5 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

There is not, I’m afraid.

bbtt0

User  
0 rated :

For future reference: As a workaround, I changed setup to repeat: false, and loaded a short mp4 which then completes and makes it exit fullscreen.

Ethan Feldman

JW Player Support Agent  
0 rated :

Ah, nice!

gtamas

User  
0 rated :

What about livestreaming? How can I make the player exit full screen while playing a livestream and a error occurs?

Ethan Feldman

JW Player Support Agent  
0 rated :

You could look for onError() and then refresh the page.

http://support.jwplayer.com/customer/portal/articles/1413089-javascript-api-reference

This question has received the maximum number of answers.