最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

javascript - JW Player 6 controlbar - Stack Overflow

matteradmin9PV0评论

Have problem with JW player 6 controlbar. The matter is it always hides after some time and i need it to stay visible all the time. Are there any setup options for controlbar or built in methods or properties in jwplayer.js for this? Couldn't find it by myself.

Have problem with JW player 6 controlbar. The matter is it always hides after some time and i need it to stay visible all the time. Are there any setup options for controlbar or built in methods or properties in jwplayer.js for this? Couldn't find it by myself.

Share Improve this question edited Nov 26, 2012 at 23:46 Kyeotic 19.9k12 gold badges72 silver badges132 bronze badges asked Nov 26, 2012 at 23:15 seegma14seegma14 311 gold badge1 silver badge3 bronze badges
Add a ment  | 

3 Answers 3

Reset to default 1

JW Player 6 indeed does not support displaying the controls at all times. Is there a specific use case for this? Given all HTML5 browsers do the same, this se

Try using controlbar.position(bottom) - Position of the controlbar. Can be set to bottom, top, over and none; or controlbar.idlehide ( false ) to force it not to hide during play mode. This should work for embedded videos, check the full api list here.

EDIT brief example:

"player": {
  "modes": {
     "linear": {
        "controls": { "manage": false }
     }
  }
},

You may wanna also check these examples.

A bit of a hack, and likely to be blown away by a core update, but I found a little heavy handed CSS got the job done for me. Note, you'll have to adjust the positioning values for your particular deployment. You can just watch for the specific styles added to the elements by jwplayer when the controls appear.

#yourid_controlbar {
    display:inline-block !important;
    opacity:1 !important;
}

#yourid_controlbar .jwgroup.jwcenter {
    left:105px !important;
    right:100px !important;
}
Post a comment

comment list (0)

  1. No comments so far