Add timeDisplay to player

This commit is contained in:
Omar Roth 2018-08-05 08:58:03 -05:00
parent d75d34abdd
commit 06af43c95e
3 changed files with 43 additions and 31 deletions

View file

@ -179,3 +179,9 @@ div {
.video-js:hover .vjs-big-play-button { .video-js:hover .vjs-big-play-button {
background-color: rgba(35, 35, 35, 0.75); background-color: rgba(35, 35, 35, 0.75);
} }
.video-js .vjs-current-time,
.video-js .vjs-time-divider,
.video-js .vjs-duration {
display: block;
}

View file

@ -69,14 +69,17 @@ var options = {
children: [ children: [
'playToggle', 'playToggle',
'volumePanel', 'volumePanel',
'currentTimeDisplay',
'timeDivider',
'durationDisplay',
'progressControl', 'progressControl',
'remainingTimeDisplay', 'remainingTimeDisplay',
'captionsButton', 'captionsButton',
'qualitySelector', 'qualitySelector',
'playbackRateMenuButton', 'playbackRateMenuButton',
'fullscreenToggle', 'fullscreenToggle'
], ]
}, }
}; };
var shareOptions = { var shareOptions = {

View file

@ -78,14 +78,17 @@ var options = {
children: [ children: [
'playToggle', 'playToggle',
'volumePanel', 'volumePanel',
'currentTimeDisplay',
'timeDivider',
'durationDisplay',
'progressControl', 'progressControl',
'remainingTimeDisplay', 'remainingTimeDisplay',
'captionsButton', 'captionsButton',
'qualitySelector', 'qualitySelector',
'playbackRateMenuButton', 'playbackRateMenuButton',
'fullscreenToggle', 'fullscreenToggle'
], ]
}, }
}; };
var shareOptions = { var shareOptions = {