Skip to content

[macOS] fillScreen not working after resizing player view

I'm currently doing some tests with vlckit on macOS , version 3.0.0a24.

The problem i found is that fillScreen stops working when the view/window is resized. if i set fillScreen= YES , when the app starts, the video is shown property, adding letterboxing or stretching if necessary. This is how a sample video show when the app starts:

start

Then, if you resize the view/windows, after that, the player always plays the video using the whole view. It stops adapting the video to the proper aspect ratio. Like this:

after-resize

This keeps happening even if you stop the player or change to a different media.

not sure if that's a bug, or i am using it wrong. I've tried setting fillScreen both to true or false, but it behaves the same way.

EDIT: Some aditional information. If i set the window full screen and then back to normal window, when it goes back the player then displays the video properly. Getting back to normal window from full screen must be triggering some event that forces the layout to recalculate the video position. But resizing the view does not. I tried to trigger it (via needslayout, needsdisplay, etc) when the app resizes, but no luck so far.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information