player icon indicating copy to clipboard operation
player copied to clipboard

Poster image in Vimeo provider does not consider aspect ratio

Open tolnem opened this issue 7 months ago • 0 comments

Current Behavior:

When creating a video player with a Vimeo video in portrait mode, with aspect-ratio set to 9 / 16, the poster image fetched is still in the aspect ratio 16 / 9. For example, creating a player around the video https://vimeo.com/351593873, the poster image used is https://i.vimeocdn.com/video/803233436-8404a1e60aa61c79f0459b4cffeb38ee0919b543a9a2b904b6bb694d12ec6889-d_1920x1080.webp

Expected Behavior:

I would expect the poster image to follow the aspect ratio of the media player, so that the poster image fetched was instead https://i.vimeocdn.com/video/803233436-8404a1e60aa61c79f0459b4cffeb38ee0919b543a9a2b904b6bb694d12ec6889-d_1080x1920.webp

Steps To Reproduce:

Create a video player with aspect ratio 9 / 16 around the video https://vimeo.com/351593873, with a poster image with no specific src.

Environment:

The poster image URL format is hardcoded in src/providers/vimeo/utils.ts, so this applies to all environments.

tolnem avatar Jun 04 '25 12:06 tolnem