Skip to content

chore: drop default poster height#1013

Merged
tsi merged 1 commit into
masterfrom
VIDEO-20771-poster-height
Mar 30, 2026
Merged

chore: drop default poster height#1013
tsi merged 1 commit into
masterfrom
VIDEO-20771-poster-height

Conversation

@tsi

@tsi tsi commented Mar 26, 2026

Copy link
Copy Markdown
Collaborator

Summary

Default Cloudinary poster sizing no longer injects height from the player box or requires clientHeight. Auto sizing adds width (scaled by DPR, rounded up to 100) and only applies crop: limit when the poster transformation does not already define crop. Sources that only have aspect_ratio still receive a default poster width so delivery URLs stay well-defined.

Changes

  • posterOptionsForCurrent: treat source as pre-sized only when the source transformation includes width (not aspect_ratio alone).
  • Auto poster merge: width only; conditional crop: limit when no existing poster crop; gate the block on playerEl.clientWidth only.

@tsi tsi requested a review from a team as a code owner March 26, 2026 13:45
@netlify

netlify Bot commented Mar 26, 2026

Copy link
Copy Markdown

Deploy Preview for cld-video-player ready!

Name Link
🔨 Latest commit d013675
🔍 Latest deploy log https://app.netlify.com/projects/cld-video-player/deploys/69c5386e84f8be0008898bb6
😎 Deploy Preview https://deploy-preview-1013--cld-video-player.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Mar 26, 2026

Copy link
Copy Markdown

Deploy Preview for cld-vp-esm-pages ready!

Name Link
🔨 Latest commit d013675
🔍 Latest deploy log https://app.netlify.com/projects/cld-vp-esm-pages/deploys/69c5386e0fa8da000894e354
😎 Deploy Preview https://deploy-preview-1013--cld-vp-esm-pages.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@tsi tsi changed the title chore: drop default poster height [VIDEO-20771] chore: drop default poster height Mar 26, 2026
@tsi tsi merged commit 4ab5930 into master Mar 30, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants