ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix preview quality
Chocobozzzd1682896d002
diff --git a/client/src/standalone/player/src/peertube-player.ts b/client/src/standalone/player/src/peertube-player.tsindex 057aaa1bd7..b31cbb05aa 100644--- a/client/src/standalone/player/src/peertube-player.ts+++ b/client/src/standalone/player/src/peertube-player.ts@@ -146,6 +146,8 @@ export class PeerTubePlayer {}setPoster (thumbnails: Thumbnail[]) {+ console.log('coucou')+// Use HTML video element to display posterif (!this.player) {const playerEl = this.options.playerElement()@@ -156,7 +158,7 @@ export class PeerTubePlayer {// Prefer using player poster APIif (this.player) {- this.player.poster(findAppropriateImage(thumbnails, this.player.currentWidth() || window.innerWidth)?.fileUrl || '')+ this.player.poster(findAppropriateImage(thumbnails, this.player.el().clientWidth || window.innerWidth)?.fileUrl || '')}this.options.playerElement().poster = ''