From efb27fb9d17a43d3bff6c10fdc76524c60499f1c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 8 Aug 2024 08:38:58 +0200 Subject: [PATCH] Prevent poster flickering --- client/src/standalone/videos/embed.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts index 2a8bb2edc..4c39ac2c7 100644 --- a/client/src/standalone/videos/embed.ts +++ b/client/src/standalone/videos/embed.ts @@ -266,11 +266,6 @@ export class PeerTubeEmbed { this.buildPlayerIfNeeded() ]) - // If already played, we are in a playlist so we don't want to display the poster between videos - if (!this.alreadyPlayed) { - this.peertubePlayer.setPoster(getBackendUrl() + video.previewPath) - } - const playlist = this.playlistTracker ? { onVideoUpdate: (uuid: string) => this.loadVideoAndBuildPlayer({ uuid, forceAutoplay: false }),