youtube icon indicating copy to clipboard operation
youtube copied to clipboard

Enabled autoresizing when rotation is activated to always fit window

Open Hypragon opened this issue 5 months ago • 5 comments

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.

Hypragon avatar Jun 11 '26 22:06 Hypragon

hi and thank you! @Hypragon is the observer to make sure or helping with cinema mode / in a specific case?

ImprovedTube2 avatar Jun 12 '26 00:06 ImprovedTube2

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

ImprovedTube2 avatar Jun 12 '26 00:06 ImprovedTube2

(

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 )

ImprovedTube2 avatar Jun 12 '26 00:06 ImprovedTube2

Yeah, it was youtube native theater mode haha I don't think #538 has anything to do with this one? might check later

Hypragon avatar Jun 12 '26 00:06 Hypragon

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.

Hypragon avatar Jun 12 '26 03:06 Hypragon