如何隐藏JWPlayer 6播放按钮? [英] How to hide JWPlayer 6 play button?
本文介绍了如何隐藏JWPlayer 6播放按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我当时使用的是JWPlayer 5,但现在转到了JWPlayer 6.
I was using JWPlayer 5, but right now moving to JWPlayer 6.
<script>
jwplayer('myElement2').setup({
file: 'intro.mp4',
image: 'intro.png',
skin: 'stormtrooper',
icons: 'false' // this doesn't work on JWPlayer 6
});
jwplayer('myElement2').getPlugin("display").hide();
</script>
在JWPlayer 5上是icons: 'false'
,并且没有播放按钮.
On JWPlayer 5 it was icons: 'false'
and there were no play button.
推荐答案
最好的方法是创建自己的皮肤,并将该元素排除在定义之外.但我认为您也可以使用一些蛮力的CSS:
The best way to do that would be to create your own skin, and leave that element out of the definition. But I think you can also do a little brute-force CSS:
<style>
.jwdisplayIcon {
display: none !important;
}
</style>
单击视频帧仍将开始播放.
Clicking the video frame will still start the playback.
这篇关于如何隐藏JWPlayer 6播放按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文