-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<video> object-fit: cover
in mux-player-react
#380
Comments
Looks like there isn't a good way to do this from mux-player. We do export |
How do I use it?
|
@ProofWoW @mikker we are on the fence of adding this to the Mux player because it could potentially result in breaks if we decide to change any styles on the internal video element in the future. What exactly is the use-case? Is it to fix letterboxing or hairline black edges around the video content? Would a custom CSS var be able to cover the use-case? Thanks for the feedback @wiesson ! What's the high level reasoning for adding Thank you! |
I'm experimenting to add the mux-player here on this page -> https://www.douglas.de/de/cp/videos/video-overview (instead of an overlay, it could start inline) but the tiles have different sizes across multiple platforms. They also should align with the other product tiles. Is there anything I can do to style the shadow dom element from outside? |
@wiesson at the moment there is no way to do this. we'll try to add this soon as it seems highly requested. |
My use case is that I want the player to have the full height of the window. So,
This works great when I add the I see your point about being hesitant to let users style too much so you don't break it with updates. I think though that the vast majority of folks customizing in this way would be aware that there's a risk the styles might change. That in mind + sticking somewhat to semantic versioning with the player, I don't see any problems with adding a direct way to style individual parts. |
Thanks all! This feature is added and released https://github.com/muxinc/elements/releases/tag/%40mux%2Fmux-player%401.0.0-beta.0 |
Hello,
How i can setup object-fit: cover for the video element, in mux-player-react?
Thank you
Originally posted by @ProofWoW in #125 (comment)
The text was updated successfully, but these errors were encountered: