Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Remove thumbnail flash for autoplay

Chocobozzz200eaf5152ca
diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts
index 334f386b6b..c9a4e541c1 100644
--- a/client/src/standalone/videos/embed.ts
+++ b/client/src/standalone/videos/embed.ts
@@ -474,7 +474,9 @@ export class PeerTubeEmbed {
const videoInfoPromise = videoResponse.json()
.then((videoInfo: VideoDetails) => {
- if (!alreadyHadPlayer) this.loadPlaceholder(videoInfo)
+ this.loadParams(videoInfo)
+
+ if (!alreadyHadPlayer && !this.autoplay) this.loadPlaceholder(videoInfo)
return videoInfo
})
@@ -493,8 +495,6 @@ export class PeerTubeEmbed {
const PeertubePlayerManager = PeertubePlayerManagerModule.PeertubePlayerManager
const videoCaptions = await this.buildCaptions(serverTranslations, captionsResponse)
- this.loadParams(videoInfo)
-
const playlistPlugin = this.currentPlaylistElement
? {
elements: this.playlistElements,