From 59a643aa5cf6775d27dfcc147b19c4537292d53c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 15 Nov 2022 11:57:49 +0100 Subject: Force autoplay when live starts Using the mute --- client/src/assets/player/shared/peertube/peertube-plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/src/assets/player/shared/peertube/peertube-plugin.ts') 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 { this.videoCaptions = options.videoCaptions this.initialInactivityTimeout = this.player.options_.inactivityTimeout - if (options.autoplay) this.player.addClass('vjs-has-autoplay') + if (options.autoplay !== false) this.player.addClass('vjs-has-autoplay') this.player.on('autoplay-failure', () => { this.player.removeClass('vjs-has-autoplay') -- cgit v1.2.3