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

Setting fullscreen without controls


We have a video in our site but we need it to run without controls (no pause / scrub / counter). The problem is, we do want to give the user the option to watch fullscreen. I thought of adding a custom FullScreen button but I found out that there is no setFullscreen method in the API. Is there any way of enabling fullscreen? Or to enable controls only for FullScreen and maybe muting but nothing else?

1 Community Answers

George

JW Player Support Agent  
0 rated :

Hi,

You could use CSS to hide the other control icons:
http://qa.jwplayer.com.s3.amazonaws.com/~george/hide_center_controls_show_fullscreen.html

Or you could call the browser’s native Fullscreen API:
http://qa.jwplayer.com.s3.amazonaws.com/~george/fullscreen_user_gesture.html
https://developer.mozilla.org/en-US/docs/Web/API/Fullscreen_API

This question has received the maximum number of answers.