aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-08-02 11:46:11 +0200
committerChocobozzz <me@florianbigard.com>2021-08-02 11:46:11 +0200
commit200eaf5152ca72fe6b05a49caf819e22bd045b37 (patch)
treefee99fb78d908f568688fae3514d592d90c33a94 /client/src
parent4a7056b283434ab10152db74b5bf15fb1ce7691e (diff)
downloadPeerTube-200eaf5152ca72fe6b05a49caf819e22bd045b37.tar.gz
PeerTube-200eaf5152ca72fe6b05a49caf819e22bd045b37.tar.zst
PeerTube-200eaf5152ca72fe6b05a49caf819e22bd045b37.zip
Remove thumbnail flash for autoplay
Diffstat (limited to 'client/src')
-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,