Closed ghost closed 4 years ago
in iOS, landscape video do not goes to full screen..
Guys this is already fixed and merged. Please update your chewie version. On v. 0.10.0 (we're now on 0.10.4) exactly this was published. I'll demonstrate it you
DeviceOrientation
while you're in fullscreen or not. Use these:deviceOrientationsAfterFullScreen: [
DeviceOrientation.portraitUp,
DeviceOrientation.landscapeRight,
DeviceOrientation.landscapeLeft,
],
deviceOrientationsOnEnterFullScreen: [
DeviceOrientation.portraitUp,
],
Yes, that's how it should be. I guess on iOS it just works. But on Android it's not. I'll attach GIF in a second.
For further informations please see this PR: https://github.com/brianegan/chewie/pull/289
I'll update the Readme file and maybe also add an API-Documentation explicitly (because not all parameters are likely known).
I'll close this issue because it's already fixed and developers can decide how their player is behaving (see PR and examples above). Download and test it with the latest chewie. Don't hesitate to reopen if you think It's not
Yes, that's how it should be. I guess on iOS it just works. But on Android it's not. I'll attach GIF in a second.
It'n not an android thing. Wait, I'll demonstrate again...
Ok, I can't upload videos above 100Mb, but here my explanation: On Android and iOS you got the ability to lock or unlock device rotations. But as discussed here: https://github.com/brianegan/chewie/pull/289 we already decided to track the video aspect ratio and not the system settings for rotation. BUT on every device you can change this behavior yourself (without chewie!) by setting:
this.systemOverlaysAfterFullScreen = SystemUiOverlay.values,
this.systemOverlaysEnterFullScreen = SystemUiOverlay.values,
this.deviceOrientationsAfterFullScreen = DeviceOrientation.values,
this.deviceOrientationsOnEnterFullScreen = DeviceOrientation.values,
And that's why we gave developers these parameters to control this behavior yourself :)
On master branch, latest version, with default settings: https://i.imgur.com/pFkwbSY.mp4
Youtube comparison: https://i.imgur.com/vbax1Ct.mp4
Currently when you go fullscreen on a landscape video, the direction is locked. Meaning you can't change the video direction by rotating your phone 180 degree.
I think regular users do not expect that to be the case.
Youtube, Netflix and Chrome's HTML5 fullscreen video all do this by default. Regardless of the user's system "auto-rotate" settings:
I propose:
I'm only talking about Android. I don't know how it works on iOS, so inputs are welcome.