Skip to content

Commit

Permalink
Adjust player UX
Browse files Browse the repository at this point in the history
Remove currentTimeDisplay, timeDivider, durationDisplay, remainingTimeDisplay from live player so we do not update unseen components.
Change Y translation animation to a control bar fade in / out
  • Loading branch information
DispatchCommit committed Mar 15, 2020
1 parent 45dd911 commit dac7e85
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 4 additions & 2 deletions assets/style/stream-player.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,15 @@
// Transitions control bar between active / inactive
.vjs-has-started {
.vjs-control-bar {
transform: translateY(0);
//transform: translateY(0);
opacity: 1;
transition: .3s;
}

&.vjs-user-inactive.vjs-playing {
.vjs-control-bar {
transform: translateY(127%);
//transform: translateY(127%);
opacity: 0;
transition: .3s;
}
}
Expand Down
6 changes: 6 additions & 0 deletions pages/_watch/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,12 @@
poster: this.poster,
inactivityTimeout: 2000,
suppressNotSupportedError: true,
controlBar: {
currentTimeDisplay : false,
timeDivider: false,
durationDisplay: false,
remainingTimeDisplay: false,
},
userActions: {
hotkeys: true,
},
Expand Down

0 comments on commit dac7e85

Please sign in to comment.