Replies: 6 comments
|
Thanks for reporting this to us. Let me enquire with the team about this issue and I will update this thread with more details. |
|
Thanks @lssamlyon . For clarification, I just need a way to remove the inline styles, not remove them by default. |
|
Great. Im going to promote this up to our discussions area for further consideration. |
|
Can this be done? I'm embedding a Vimeo video and I want it to be full screen but not with aspect ratio and the inline css for |
|
I've found that setting the transparent attribute (as a query param to the iframe, or as a property on the Vimeo.Player config object) to false causes these styles to be removed. const player = new Vimeo.Player(element, {
id: "...",
transparent: false,
}); |
|
Would really love a more official solution to this as well so that I can set object-fit: cover on my Vimeo video. |
Uh oh!
There was an error while loading. Please reload this page.
Expected Behavior
Remove the inline styles in the element with an id of "player" inside the iframe

Actual Behavior
Currently, it has inline styles for width and height which makes the different videos not have the same dimensions. I have a fixed height and width for the video container, and I just want the Vimeo controls to be in full width, even if the video is not.

Steps to Reproduce
I just copied and pasted this sample Vimeo code to JSFiddle:
https://github.com/vimeo/player.js#pre-existing-player
All reactions