Add object-fit support to FxControl and calculateStyle functions#790
Add object-fit support to FxControl and calculateStyle functions#790Pawloland wants to merge 1 commit intopolywock:masterfrom
Conversation
|
Hello again! Seems useful. edit: Found some videos. |
|
Yes, it doesn't do much on YT, only |
|
I've mulled it over, and I do have a few concerns. (Thank you for the PR by the way!)
|
|
Sure, I use use my own built fork, so if you don't want to merge it that's fine. |
Hi, this PR allows changing a way the video is shown using object-fit CSS property. It is useful when watching on 16:9 display a video that is encoded in 4:3 with black bars at the top and bottom, because the actual video is 16:9. Then when
coveris selected in a drop down forobject-fit, the black bars disappear and movie is scaled to fill horizontally, so the black bars overflow at the bottom and at the top, leaving only the 16:9 part of the actual content effectively full screen.