如何在videojs v5中隐藏当前时间工具提示?

时间:2015-10-30 12:55:26

标签: video.js

我想在videojs v5中隐藏当前时间工具提示。可以使用.video-js .vjs-progress-control .vjs-play-progress:after在css中识别它。但是,隐藏它也会隐藏进度条的完成部分。

有没有办法只隐藏当前时间工具提示?

2 个答案:

答案 0 :(得分:2)

添加此类以仅禁用当前时间工具提示:

.video-js .vjs-progress-control:hover .vjs-play-progress:after {
    display:none;
}

请注意添加的:hover只是隐藏工具提示的内容。

答案 1 :(得分:0)

这适用于我(我尝试使用videojs 5.9)

/* hide time display on progress bar on the mouse position */
.video-js .vjs-progress-control:hover .vjs-mouse-display,
/* hide time display on progress bar on the current play position */
.video-js .vjs-progress-holder .vjs-play-progress {
   display: none; 
}