]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix playback rate
authorChocobozzz <me@florianbigard.com>
Thu, 1 Mar 2018 13:14:56 +0000 (14:14 +0100)
committerChocobozzz <me@florianbigard.com>
Thu, 1 Mar 2018 13:14:56 +0000 (14:14 +0100)
client/src/app/videos/+video-watch/video-watch.component.ts
client/src/assets/player/peertube-videojs-plugin.ts
client/src/sass/video-js-custom.scss

index 66ef0399ac063d1f74ace2d09e161c999b994615..b1dd3d10b7d69b8fa6254abbead3c2b459fff74f 100644 (file)
@@ -341,7 +341,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
       const videojsOptions = {
         controls: true,
         autoplay: this.isAutoplay(),
-        playbackRates: [0.5, 1, 1.25, 1.5, 2],
+        playbackRates: [ 0.5, 1, 1.5, 2 ],
         plugins: {
           peertube: {
             videoFiles: this.video.files,
index 618d77cbed6c373a8e0b1ae61c04fb053c456f8a..3b366ec9be4dc8852cf77f5db4b01e4d094d54cb 100644 (file)
@@ -307,7 +307,9 @@ class PeerTubePlugin extends Plugin {
 
     // Do not display error to user because we will have multiple fallbacks
     this.disableErrorDisplay()
+
     this.player.src = () => true
+    this.player.playbackRate(1)
 
     const previousVideoFile = this.currentVideoFile
     this.currentVideoFile = videoFile
index f2251244ac5d9d176bbc626d2d7a297c8c4df66e..3dfad5ff623b0463f6595c1ea91c859894b245c6 100644 (file)
@@ -220,7 +220,7 @@ $control-bar-height: 34px;
 
     .vjs-playback-rate {
       font-size: 10px;
-      margin-right: 48px;
+      margin-right: 50px;
 
       .vjs-playback-rate-value {
         font-size: 13px;