diff options
author | Chocobozzz <me@florianbigard.com> | 2022-12-14 14:06:12 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-12-14 14:06:12 +0100 |
commit | 7dcd45a9a289c2da38eafd9a0b293453981b0da4 (patch) | |
tree | 6cced9f152da0d7b7c3f80f28bb6d9e2532be674 /client/src/standalone/videos/shared | |
parent | 21e73020142635f0b1b2c8694a6b5164437954b9 (diff) | |
download | PeerTube-7dcd45a9a289c2da38eafd9a0b293453981b0da4.tar.gz PeerTube-7dcd45a9a289c2da38eafd9a0b293453981b0da4.tar.zst PeerTube-7dcd45a9a289c2da38eafd9a0b293453981b0da4.zip |
Don't not autoplay live without autoplay setting
Diffstat (limited to 'client/src/standalone/videos/shared')
-rw-r--r-- | client/src/standalone/videos/shared/player-manager-options.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/standalone/videos/shared/player-manager-options.ts b/client/src/standalone/videos/shared/player-manager-options.ts index 9ec012369..b0bdb2dd9 100644 --- a/client/src/standalone/videos/shared/player-manager-options.ts +++ b/client/src/standalone/videos/shared/player-manager-options.ts | |||
@@ -162,7 +162,7 @@ export class PlayerManagerOptions { | |||
162 | 162 | ||
163 | serverConfig: HTMLServerConfig | 163 | serverConfig: HTMLServerConfig |
164 | 164 | ||
165 | alreadyHadPlayer: boolean | 165 | autoplayFromPreviousVideo: boolean |
166 | 166 | ||
167 | translations: Translations | 167 | translations: Translations |
168 | 168 | ||
@@ -174,7 +174,7 @@ export class PlayerManagerOptions { | |||
174 | const { | 174 | const { |
175 | video, | 175 | video, |
176 | captionsResponse, | 176 | captionsResponse, |
177 | alreadyHadPlayer, | 177 | autoplayFromPreviousVideo, |
178 | videoFileToken, | 178 | videoFileToken, |
179 | translations, | 179 | translations, |
180 | forceAutoplay, | 180 | forceAutoplay, |
@@ -189,7 +189,7 @@ export class PlayerManagerOptions { | |||
189 | const playerOptions: PeertubePlayerManagerOptions = { | 189 | const playerOptions: PeertubePlayerManagerOptions = { |
190 | common: { | 190 | common: { |
191 | // Autoplay in playlist mode | 191 | // Autoplay in playlist mode |
192 | autoplay: alreadyHadPlayer ? true : this.autoplay, | 192 | autoplay: autoplayFromPreviousVideo ? true : this.autoplay, |
193 | forceAutoplay, | 193 | forceAutoplay, |
194 | 194 | ||
195 | controls: this.controls, | 195 | controls: this.controls, |