aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/standalone
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/standalone')
-rw-r--r--client/src/standalone/videos/embed.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts
index 334f386b6..c9a4e541c 100644
--- a/client/src/standalone/videos/embed.ts
+++ b/client/src/standalone/videos/embed.ts
@@ -474,7 +474,9 @@ export class PeerTubeEmbed {
474 474
475 const videoInfoPromise = videoResponse.json() 475 const videoInfoPromise = videoResponse.json()
476 .then((videoInfo: VideoDetails) => { 476 .then((videoInfo: VideoDetails) => {
477 if (!alreadyHadPlayer) this.loadPlaceholder(videoInfo) 477 this.loadParams(videoInfo)
478
479 if (!alreadyHadPlayer && !this.autoplay) this.loadPlaceholder(videoInfo)
478 480
479 return videoInfo 481 return videoInfo
480 }) 482 })
@@ -493,8 +495,6 @@ export class PeerTubeEmbed {
493 const PeertubePlayerManager = PeertubePlayerManagerModule.PeertubePlayerManager 495 const PeertubePlayerManager = PeertubePlayerManagerModule.PeertubePlayerManager
494 const videoCaptions = await this.buildCaptions(serverTranslations, captionsResponse) 496 const videoCaptions = await this.buildCaptions(serverTranslations, captionsResponse)
495 497
496 this.loadParams(videoInfo)
497
498 const playlistPlugin = this.currentPlaylistElement 498 const playlistPlugin = this.currentPlaylistElement
499 ? { 499 ? {
500 elements: this.playlistElements, 500 elements: this.playlistElements,