player.js icon indicating copy to clipboard operation
player.js copied to clipboard

Option to disable letterboxing? (feature request?)

Open LeoSeyers opened this issue 4 years ago • 1 comments

Hello,

I was wondering if there is any option available during instanciation to disable the letterboxing / pillar box? The idea would be to use the video in "cover" mode as you would use it with an image object-fit property for a good fullscreen experience (while preserving the video original ratio). Is this a feature you would consider implementing in the future?

Alternatively I'm thinking in a way to implement it. The simplest solution I came up with was to get the video sizing and upscale the iFrame accordingly (+ having an additional portrait or landscape video check) and offsetting its position while hiding overflow on the parent container.

Have a good day Leo

LeoSeyers avatar May 05 '21 10:05 LeoSeyers

Also desperately need this! Just being able to set object-fit: cover on the Vimeo video tag

benkingcode avatar May 28 '21 20:05 benkingcode