1
0
Fork 0

Support different playback rates (#318)

This commit is contained in:
jonathanraes 2018-03-01 08:26:56 +01:00 committed by Chocobozzz
parent 09cababd79
commit 57886d6671
2 changed files with 7 additions and 2 deletions

View File

@ -340,6 +340,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
const videojsOptions = { const videojsOptions = {
controls: true, controls: true,
autoplay: this.isAutoplay(), autoplay: this.isAutoplay(),
playbackRates: [0.5, 1, 1.25, 1.5, 2],
plugins: { plugins: {
peertube: { peertube: {
videoFiles: this.video.files, videoFiles: this.video.files,

View File

@ -180,7 +180,6 @@ $control-bar-height: 34px;
width: 100%; width: 100%;
line-height: $control-bar-height; line-height: $control-bar-height;
text-align: right; text-align: right;
padding-right: 60px;
.vjs-peertube-displayed { .vjs-peertube-displayed {
display: block; display: block;
@ -219,6 +218,12 @@ $control-bar-height: 34px;
} }
} }
.vjs-playback-rate {
font-size: 10px;
margin-right: 60px;
margin-top: 2px;
}
.vjs-mute-control { .vjs-mute-control {
outline: 0; outline: 0;
@ -322,7 +327,6 @@ $control-bar-height: 34px;
} }
.vjs-menu-button-popup { .vjs-menu-button-popup {
font-size: 13px;
font-weight: $font-semibold; font-weight: $font-semibold;
width: 50px; width: 50px;