I want to embed an iframe that contains a vimeo video inside a container div and give that div any ole aspect-ratio
and just have my vimeo video conform to that using something like object-fit: cover
(even though that isn’t available for <iframe>
elements).
Is there some sort of magical Vimeo JS API embed setting that will make the video “cover” the entire browser viewport rather than be “contained” in it?
Here’s an example URL: https://player.vimeo.com/video/764297424?h=04309e89de&badge=0&autoplay=1&muted=1&controls=0&loop=1&autopause=0&title=0&byline=0&playsinline=1&background=1&responsive=1&pip=0&dnt=1&chromecast=0
Notice how when you resize the browser to various aspect ratios, the video is contained rather than filling/covering the viewport.