]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Add more playback speed (0.75 and 1.25)
authorGlandos <bugs-github@antipoul.fr>
Fri, 31 Aug 2018 15:10:01 +0000 (17:10 +0200)
committerChocobozzz <me@florianbigard.com>
Fri, 31 Aug 2018 15:19:38 +0000 (17:19 +0200)
Those speeds are much more closer to the normal speed. They are useful for listening to human speeches.

client/src/assets/player/peertube-player.ts

index 7e53d2142f9fb639c7148d821745b461ec1a86f4..0f9836c5eb929a8902de697a349979597931d8f4 100644 (file)
@@ -49,7 +49,7 @@ function getVideojsOptions (options: {
     poster: options.poster,
     autoplay: false,
     inactivityTimeout: options.inactivityTimeout,
-    playbackRates: [ 0.5, 1, 1.5, 2 ],
+    playbackRates: [ 0.5, 0.75, 1, 1.25, 1.5, 2 ],
     plugins: {
       peertube: {
         autoplay: options.autoplay, // Use peertube plugin autoplay because we get the file by webtorrent