mirror of https://github.com/Chocobozzz/PeerTube
Fix playback rate
parent
901637bb87
commit
1198a08cc7
|
@ -341,7 +341,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],
|
playbackRates: [ 0.5, 1, 1.5, 2 ],
|
||||||
plugins: {
|
plugins: {
|
||||||
peertube: {
|
peertube: {
|
||||||
videoFiles: this.video.files,
|
videoFiles: this.video.files,
|
||||||
|
|
|
@ -307,7 +307,9 @@ class PeerTubePlugin extends Plugin {
|
||||||
|
|
||||||
// Do not display error to user because we will have multiple fallbacks
|
// Do not display error to user because we will have multiple fallbacks
|
||||||
this.disableErrorDisplay()
|
this.disableErrorDisplay()
|
||||||
|
|
||||||
this.player.src = () => true
|
this.player.src = () => true
|
||||||
|
this.player.playbackRate(1)
|
||||||
|
|
||||||
const previousVideoFile = this.currentVideoFile
|
const previousVideoFile = this.currentVideoFile
|
||||||
this.currentVideoFile = videoFile
|
this.currentVideoFile = videoFile
|
||||||
|
|
|
@ -220,7 +220,7 @@ $control-bar-height: 34px;
|
||||||
|
|
||||||
.vjs-playback-rate {
|
.vjs-playback-rate {
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
margin-right: 48px;
|
margin-right: 50px;
|
||||||
|
|
||||||
.vjs-playback-rate-value {
|
.vjs-playback-rate-value {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
|
|
Loading…
Reference in New Issue