Prevent poster flickering
This commit is contained in:
parent
84e9b0bfea
commit
efb27fb9d1
|
@ -266,11 +266,6 @@ export class PeerTubeEmbed {
|
||||||
this.buildPlayerIfNeeded()
|
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
|
const playlist = this.playlistTracker
|
||||||
? {
|
? {
|
||||||
onVideoUpdate: (uuid: string) => this.loadVideoAndBuildPlayer({ uuid, forceAutoplay: false }),
|
onVideoUpdate: (uuid: string) => this.loadVideoAndBuildPlayer({ uuid, forceAutoplay: false }),
|
||||||
|
|
Loading…
Reference in New Issue