diff options
author | Chocobozzz <me@florianbigard.com> | 2022-11-15 11:57:49 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-11-15 11:57:49 +0100 |
commit | 59a643aa5cf6775d27dfcc147b19c4537292d53c (patch) | |
tree | 74bc87e2f0f5581306c8ea9dd1f8acf05833a74a /client/src/assets/player/shared/peertube/peertube-plugin.ts | |
parent | c2419476302b20e9fe3708d7a0a889ae18c95c1b (diff) | |
download | PeerTube-59a643aa5cf6775d27dfcc147b19c4537292d53c.tar.gz PeerTube-59a643aa5cf6775d27dfcc147b19c4537292d53c.tar.zst PeerTube-59a643aa5cf6775d27dfcc147b19c4537292d53c.zip |
Force autoplay when live starts
Using the mute
Diffstat (limited to 'client/src/assets/player/shared/peertube/peertube-plugin.ts')
-rw-r--r-- | client/src/assets/player/shared/peertube/peertube-plugin.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/assets/player/shared/peertube/peertube-plugin.ts b/client/src/assets/player/shared/peertube/peertube-plugin.ts index 56de66998..ec8fbb320 100644 --- a/client/src/assets/player/shared/peertube/peertube-plugin.ts +++ b/client/src/assets/player/shared/peertube/peertube-plugin.ts | |||
@@ -52,7 +52,7 @@ class PeerTubePlugin extends Plugin { | |||
52 | this.videoCaptions = options.videoCaptions | 52 | this.videoCaptions = options.videoCaptions |
53 | this.initialInactivityTimeout = this.player.options_.inactivityTimeout | 53 | this.initialInactivityTimeout = this.player.options_.inactivityTimeout |
54 | 54 | ||
55 | if (options.autoplay) this.player.addClass('vjs-has-autoplay') | 55 | if (options.autoplay !== false) this.player.addClass('vjs-has-autoplay') |
56 | 56 | ||
57 | this.player.on('autoplay-failure', () => { | 57 | this.player.on('autoplay-failure', () => { |
58 | this.player.removeClass('vjs-has-autoplay') | 58 | this.player.removeClass('vjs-has-autoplay') |