aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/peertube-plugin.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/assets/player/peertube-plugin.ts')
-rw-r--r--client/src/assets/player/peertube-plugin.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/client/src/assets/player/peertube-plugin.ts b/client/src/assets/player/peertube-plugin.ts
index aacbf5f6e..7ea4a06d4 100644
--- a/client/src/assets/player/peertube-plugin.ts
+++ b/client/src/assets/player/peertube-plugin.ts
@@ -47,7 +47,11 @@ class PeerTubePlugin extends Plugin {
47 this.videoDuration = options.videoDuration 47 this.videoDuration = options.videoDuration
48 this.videoCaptions = options.videoCaptions 48 this.videoCaptions = options.videoCaptions
49 49
50 if (this.autoplay === true) this.player.addClass('vjs-has-autoplay') 50 if (options.autoplay === true) this.player.addClass('vjs-has-autoplay')
51
52 this.player.on('autoplay-failure', () => {
53 this.player.removeClass('vjs-has-autoplay')
54 })
51 55
52 this.player.ready(() => { 56 this.player.ready(() => {
53 const playerOptions = this.player.options_ 57 const playerOptions = this.player.options_