Enabled autoresizing when rotation is activated to always fit window
Abstracted the resizing from the core rotate and added it back to the core and to a listener of the movie player to update the video size whenever it changes size.
It should fix #3943 after testing it in both horizontal and vertical displays.
Also added a coalescent operator to player_cinema_mode_button and player_auto_hide_cinema_mode_when_paused since it gives null pointer exception under some configurations.
hi and thank you! @Hypragon is the observer to make sure or helping with cinema mode / in a specific case?
ohh #3915 meant youtube's theater mode
(and not our feature cinema mode?) then my
this.storage?.player_cinema_mode_button === true || this.storage?.player_auto_hide_cinema_mode_when_paused === true || this.storage?.player_auto_cinema_mode === true) ||
may be wrong / unnecessary
(
As a workaround while I look into it, I recommend rotating the video after setting it with the desired size instead of before.
possible? i get #538 )
Yeah, it was youtube native theater mode haha I don't think #538 has anything to do with this one? might check later
hi and thank you! @Hypragon is the observer to make sure or helping with cinema mode / in a specific case?
Forgot to answer this one. It's because it calculates the ratio when rotating, but sometimes the correct ratio changes when changing the size of the player.