1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 09:49:20 +02:00

Rename player embed api

This commit is contained in:
Chocobozzz 2023-07-10 16:08:53 +02:00
parent a1bd2b77d9
commit 8953f055c8
No known key found for this signature in database
GPG key ID: 583A612D890159BE
11 changed files with 7 additions and 4 deletions

View file

@ -242,7 +242,10 @@ export class PeerTubeEmbed {
this.buildPlayerIfNeeded()
])
this.peertubePlayer.setPoster(window.location.origin + video.previewPath)
// 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(window.location.origin + video.previewPath)
}
const playlist = this.playlistTracker
? {