diff options
Diffstat (limited to 'client/src/assets/player')
-rw-r--r-- | client/src/assets/player/peertube-videojs-plugin.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/client/src/assets/player/peertube-videojs-plugin.ts b/client/src/assets/player/peertube-videojs-plugin.ts index 090cc53ba..7cf3ea6cc 100644 --- a/client/src/assets/player/peertube-videojs-plugin.ts +++ b/client/src/assets/player/peertube-videojs-plugin.ts | |||
@@ -216,7 +216,12 @@ const peertubePlugin = function (options: PeertubePluginOptions) { | |||
216 | if (options.autoplay === true) { | 216 | if (options.autoplay === true) { |
217 | player.updateVideoFile() | 217 | player.updateVideoFile() |
218 | } else { | 218 | } else { |
219 | player.one('play', () => player.updateVideoFile()) | 219 | player.one('play', () => { |
220 | // Pause, we wait the video to load before | ||
221 | player.pause() | ||
222 | |||
223 | player.updateVideoFile(undefined, () => player.play()) | ||
224 | }) | ||
220 | } | 225 | } |
221 | 226 | ||
222 | setInterval(() => { | 227 | setInterval(() => { |