如何在视频开始时立即隐藏 JWPlayer 或 FlowPlayer 上的控制栏
我有一个视频,需要在页面加载后立即开始播放(这是最简单的部分)。
我还可以将视频控制栏设置为“自动隐藏”,但我希望它最初是不可见的,因为它在视频开始时看起来非常混乱。
(我还有自己的按钮对应于视频中的“部分”,但我仍然希望人们在翻转时看到进度条)。
我尝试查看 JWPlayer 和 Flowplayer,它们都有自动隐藏控制栏,但它们都在启动时显示。
有没有办法最初不在这些播放器或其他播放器中显示控制栏?
I have a video that I need to immediately start playing when my page has loaded (that's the easy part).
I can also set the video control bar to 'auto-hide' but I'd like it to be initially invisibile because it looks really messy on top of the video as it starts.
(I also my own buttons corresponding to 'sections' in the video but I'd still like people to see a progress bar if they rollover).
I've tried looking at both JWPlayer and Flowplayer and both have auto-hiding control bars, but they both display on startup.
Is there a way to not initially show the control bar in either of these players - or some other player?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,我找到了 JWPlayer 的答案:
来自 此处
添加 "controlbar.idlehide": true 作为 flashvar
这似乎是最近添加的,因为我还发现了一些早期的帖子(在同一线程中)抱怨这是不可能的 - 与代码来修补源。
OK I found the answer for JWPlayer :
From here
Add "controlbar.idlehide": true as a flashvar
This appears to be fairly recent addition as I also found some earlier posts (in the same thread) complaining this wasn't possible - with code to patch the source.