Remove thumbnail flash for autoplay
This commit is contained in:
parent
4a7056b283
commit
200eaf5152
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue