diff options
author | Chocobozzz <me@florianbigard.com> | 2020-05-11 17:48:25 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-05-11 17:48:56 +0200 |
commit | 72efdda586489bf59ac7df12ff9e75a926f1f048 (patch) | |
tree | e41d7390f554ef1f2bc341da4b0c0220867b7323 /client/src/assets/player/peertube-plugin.ts | |
parent | 6422847473a7dd1aa6066d2735a66a47a956f5e4 (diff) | |
download | PeerTube-72efdda586489bf59ac7df12ff9e75a926f1f048.tar.gz PeerTube-72efdda586489bf59ac7df12ff9e75a926f1f048.tar.zst PeerTube-72efdda586489bf59ac7df12ff9e75a926f1f048.zip |
Try to fix auto play on apple devices
Diffstat (limited to 'client/src/assets/player/peertube-plugin.ts')
-rw-r--r-- | client/src/assets/player/peertube-plugin.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/assets/player/peertube-plugin.ts b/client/src/assets/player/peertube-plugin.ts index 5085f7f86..a5a706420 100644 --- a/client/src/assets/player/peertube-plugin.ts +++ b/client/src/assets/player/peertube-plugin.ts | |||
@@ -45,7 +45,7 @@ class PeerTubePlugin extends Plugin { | |||
45 | 45 | ||
46 | this.savedInactivityTimeout = player.options_.inactivityTimeout | 46 | this.savedInactivityTimeout = player.options_.inactivityTimeout |
47 | 47 | ||
48 | if (options.autoplay === true) this.player.addClass('vjs-has-autoplay') | 48 | if (options.autoplay) this.player.addClass('vjs-has-autoplay') |
49 | 49 | ||
50 | this.player.on('autoplay-failure', () => { | 50 | this.player.on('autoplay-failure', () => { |
51 | this.player.removeClass('vjs-has-autoplay') | 51 | this.player.removeClass('vjs-has-autoplay') |