Customising video player aspect ration

Hi,
Is it possible to customise the video player customer ratio. I want to display a video that is very wide and not very high. When I use the 16:9 ratio it floats in a huge box and the poster image that I sized to the same dimensions as my video is deformed.
Thanks

Hi,

Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation.

Thank you.

Hi,
Sorry it’s taken me so long to get back to you. I will add the URL in a secure note.
best
Susan

Hi Susan,

The page concerned is page not found when I checked. I want to see your setup first. It is expected to be deformed if you have far different aspect ratio by default. Forcing a different proportion will automatically skewed the proportions of your video.

Hi, sorry about the link. I will put the proper link in a secure note. The video itself is fine, but it is contained in a box much higher than necessary. The poster image deforms to fill this box.
Also is it possible to have an arrow on the poster image indicating that it’s a video and to click to play.
Thanks very much,
Susan

Hi Susan,

On the video element class field, try adding custom-video. Then also add the following custom CSS:

    padding-bottom: 25%; /*Adjust the following code accordingly*/
}```

Hope this helps.

That works a treat. Thanks very much Lely.

On behalf of my colleague, you’re welcome! :slight_smile:

Cheers!