最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - JW Player 6 controlbar - Stack Overflow

programmeradmin1浏览0评论

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;
}
发布评论

评论列表(0)

  1. 暂无评论