admin管理员组文章数量:1279184
I posted this in the VideoJS forums but have yet to receive a response, I was hoping I could get some assistance here. : )
I am trying to remove the "big play button" that shows up once a video is finished playing in video js.
I have tried numerous hides/shows but can't seem to get it to disappear at the end. I've gotten it to hide at the beginning by simply altering the css, but I've found nothing for the end. I am using the most current release of Video JS, and therefore the old fixes that I have found do not work.
Please help. Thank you in advance!
I posted this in the VideoJS forums but have yet to receive a response, I was hoping I could get some assistance here. : )
I am trying to remove the "big play button" that shows up once a video is finished playing in video js.
I have tried numerous hides/shows but can't seem to get it to disappear at the end. I've gotten it to hide at the beginning by simply altering the css, but I've found nothing for the end. I am using the most current release of Video JS, and therefore the old fixes that I have found do not work.
Please help. Thank you in advance!
Share Improve this question edited Aug 2, 2012 at 3:18 jdl 17.8k4 gold badges54 silver badges54 bronze badges asked Jun 17, 2012 at 18:20 user1462210user1462210 511 gold badge1 silver badge2 bronze badges3 Answers
Reset to default 5The CSS answer is best, though you might be better hiding it in your own stylesheet so you can upgrade to later versions of Video.js without issue. This should do it.
.video-js.vjs-default-skin .vjs-big-play-button { display: none; }
You could also remove the line that includes the bigPlayButton ponent, but that would really prevent easy upgrading.
https://github./zencoder/video-js/blob/master/src/core.js#L69
Just remove/alter the CSS, it's in there. It's line 328 until 360 in video-js.css
https://github./zencoder/video-js/blob/master/design/video-js.css
Their javascript adds a class on the id to indicate the video has finished playing. Add the following css line:
.vjs-paused .vjs-big-play-button { display: none; }
本文标签: javascriptHow do I remove the big play button at the end of a video playing (VideoJS)Stack Overflow
版权声明:本文标题:javascript - How do I remove the big play button at the end of a video playing (VideoJS) - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741223168a2361357.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论