revanced-patches icon indicating copy to clipboard operation
revanced-patches copied to clipboard

feat(YouTube): Force landscape in fullscreen mode

Open castdrian opened this issue 3 years ago • 19 comments

Application

YouTube

Issue

On regular sized devices pressing the fullscreen button rotates the player to landscape to achieve full screen viewing. On big devices it just enter full screen mode in a desktop like way.

Patch

It should simply force landscape mode when clicking the full screen button and keep the orientation locked

Motivation

Landscape for fullscreen makes more sense than portrait unless it is a vertical video

Acknowledgements

  • [X] I have searched the existing issues and this is a new and no duplicate or related to another open issue.
  • [X] I have written a short but informative title.
  • [X] I filled out all of the requested information in this issue properly.

castdrian avatar Oct 30 '22 18:10 castdrian

Clicking on the fullscreen button should make YouTube go into full screen, not sure wym. Please attacha video.

oSumAtrIX avatar Oct 30 '22 18:10 oSumAtrIX

Clicking on the fullscreen button should make YouTube go into full screen, not sure wym. Please attacha video.

It does go into full screen, it just doesn't rotate to landscape on big devices https://user-images.githubusercontent.com/22133246/198896383-ee08c06c-e640-46b3-a4f9-293472654aaf.mp4

castdrian avatar Oct 30 '22 18:10 castdrian

If you want it rotated, why not rotate your device initially? It will rotate automatically?

oSumAtrIX avatar Oct 30 '22 18:10 oSumAtrIX

If you want it rotated, why not rotate your device initially? It will rotate automatically?

Sure but it's unidentical behavior. Turn off autorotate on your phone and click that button. It will rotate to landscape and stay locked, which in my opinion it should do on big devices as well, as that way you can watch stuff in landscape without auto rotate being enabled.

castdrian avatar Oct 30 '22 18:10 castdrian

Turn off autorotate on your phone and click that button. It will rotate to landscape and stay locked

Because there is no non landscape fullscreen, logically it has to rotate.

oSumAtrIX avatar Oct 30 '22 19:10 oSumAtrIX

Because there is no non landscape fullscreen, logically it has to rotate.

As you can see in the screen capture it does in fact not logically rotate but enter portrait fullscreen instead, that's the entire incentive behind this

castdrian avatar Oct 30 '22 19:10 castdrian

image

Nope

oSumAtrIX avatar Oct 30 '22 19:10 oSumAtrIX

What nope, clearly demonstrated

castdrian avatar Oct 30 '22 19:10 castdrian

What nope, clearly demonstrated

You demonstrated on your phone and asked to check on mine. Quoting you:

Turn off autorotate on your phone and click that button. It will rotate to landscape and stay locked,

Reason why:

https://github.com/revanced/revanced-patches/issues/923#issuecomment-1296328388

oSumAtrIX avatar Oct 30 '22 19:10 oSumAtrIX

On my galaxy fold 4 with auto rotate off when i click Fullscreen it stays portrait instead of going landscape

nochlab1 avatar Oct 31 '22 06:10 nochlab1

Same, dunno what the fuck he's on about but he clearly didn't watch the video he requested

castdrian avatar Oct 31 '22 06:10 castdrian

I think @oSumAtrIX is right, after viewing the screencap. I cannot see any issue. But from reading OP's other issues I could see that there's a chance that OP is using foldable phones, which messes with the UI.

Maybe you could use another phone to record the foldable? It would be easier to understand with the context of where the device physically available on a desk

SodaWithoutSparkles avatar Oct 31 '22 08:10 SodaWithoutSparkles

@SodaWithoutSparkles re-read, when clicking the button on a regular device it will rotal to achieve fullscreen, which would be visible in the screen capture, it does however not do that on big devices and instead just enters fullscreen in portrait mode, that's not that hard to grasp imo

castdrian avatar Oct 31 '22 13:10 castdrian

I think @oSumAtrIX is right, after viewing the screencap. I cannot see any issue. But from reading OP's other issues I could see that there's a chance that OP is using foldable phones, which messes with the UI.

Maybe you could use another phone to record the foldable? It would be easier to understand with the context of where the device physically available on a desk

https://imgur.com/a/WCk6RHO hopefully this video is clear enough

nochlab1 avatar Nov 01 '22 00:11 nochlab1

I see what you mean now. Does rotating the device makes any difference?

SodaWithoutSparkles avatar Nov 01 '22 14:11 SodaWithoutSparkles

Ye when the phone is in landscape the video goes landscape

nochlab1 avatar Nov 01 '22 15:11 nochlab1

Ye when the phone is in landscape the video goes landscape

Only if auto rotate is ON.

See ReVanced/revanced-patches-template#544 ReVanced/revanced-patches-template#1052 as duplicates.

ReVanced/revanced-patches-template#985 describes perfectly the issue and motivation. Currently you can not lock video in landscape unless using a third party app or playing with the QS multiple time to achieve what you want every time.

This feature has been requested many times because it's way the former vanced used to work on tablet with auto rotate OFF.

This feature keeps being asked for a reason. The problem seems to be YouTube itself. Official app 18.31.37 has the same issue. Full screen sticks in portrait if auto rotate is OFF. But if a patch can solve this to only use landscape sensor to force any landscape mode in full screen, it would be perfect.

Fred-Vatin avatar Aug 15 '23 05:08 Fred-Vatin

hopefully this demonstrates the issue better on tablets, fullscreen in portait is currently just kinda... useless? it just moves the video down slighty https://github.com/ReVanced/revanced-patches/assets/83337894/9a1cb7f7-d1b0-4a93-905e-bfdd092848ef

and if you actually want watch videos in landscape but browse in portrait (which is imo the sane way), you gotta do this little dance everytime https://github.com/ReVanced/revanced-patches/assets/83337894/208762d5-333a-49f8-a2fb-6cecd3bb3d76 which is kinda a meme

it also doesn't help that youtube (even vanilla) just doesn't support the manual rotate button that every other app seems to have? this little thing at the bottom left of your screen, that appears with autorotate off if you rotate your device. Screenshot_20231105-222514 might make a separate feature request to enable that, if this one is difficult for some reason.

JumperREDACTED avatar Nov 05 '23 21:11 JumperREDACTED

they are to stern to care, as usual with OSS projects, unless you do it yourself there's about zero chance to have it done

castdrian avatar Nov 06 '23 12:11 castdrian