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

Is it possible to launch JWPlayer in full screen


We have strong request for some training videos to launch the player full screen. The folks being trained are not very good at following directions for maximizing the window so we would like it to start full screen. I've seen some discussions here that it may not be possible, and we've not found a way. I was hoping for a final word from Long Tail or JWPlayer that it's not possible (or directions on how to do it if it is possible).
Thank you,
-David

3 Community Answers

Todd

JW Player Support Agent  
0 rated :

As anti-phishing measure, we do not allow the API to be used to launch the player in full screen mode. You can however, resize a video to be 100% width when the video starts playing. See a code example below:

<div id="video">Loading the player …</div>

<br> <script type='text/javascript'>
jwplayer(‘video’).setup({
file: ‘bunny.mp4’,
image: ‘bunny.jpg’,
width: ‘150px’,
height: ‘100px’
});

jwplayer(‘video’).onPlay(function(){
jwplayer(‘video’).resize(‘100%’,‘600px’);
});
</script>

Hope this helps,
Todd

jherrieven

User  
1 rated :

@David

jwplayer().setFullscreen() - works in HTML5 mode only. Call it onReady and you'll get Fullscreen as soon as the player is ready.

James Herrieven

david.williams

User  
0 rated :

We were able to get full browser window, but not full screen. We're working on training our students how to get it full screen. Thanks for the pointers, they were helpful.
-David

This question has received the maximum number of answers.