How to immediately hide the control panel on JWPlayer or FlowPlayer when starting a video

I have a video that I need to immediately start playing when my page loads (this is the easy part).

I can also set the video control panel to "auto-hide", but I would like it to be initially invisible because it looks really messy on top of the video as it starts.

(I also have my own buttons corresponding to the β€œsections” in the video, but I would still like people to see the progress bar if they roll over).

I tried looking at both JWPlayer and Flowplayer, and both have auto-hide control panels, but they both appear at startup.

Is there a way to not display the control panel in any of these players - or any other player?

+4
source share
2 answers

OK I found the answer for JWPlayer:

From here

Add "controlbar.idlehide": true as flashvar

var player = jwplayer("ANIM_INTRO1").setup( { flashplayer: "/content/jw5.4/player.swf")", file: "test/FULL-VIDEO.f4v", streamer: 'rtmp://flvstream.example.com/cfx/st', autostart: true, height: 242, width: 555, "controlbar.idlehide": true, } 

This seems like a pretty recent addition, as I also found some early posts (in the same thread) complaining that this was not possible - with code to fix the source.

+5
source

use can use this code, works great for me.

 controlbar:false 
0
source

Source: https://habr.com/ru/post/1337233/


All Articles