Video.js: 使用video.js在安卓上全屏时,不能横屏

Created on 19 Apr 2019  ·  4Comments  ·  Source: videojs/video.js

Description

在移动端使用video.js播放视频,全屏播放,在iOS能根据重力感应自动横屏竖屏,但是在安卓上无法根据重力感应横屏播放。是要设置什么吗?

Most helpful comment

Sorry, Google translate isn't very clear. I think you are saying that a video in full screen mode is not rotating when the phone orientation changes. This is handled by the browser, Video.js does not do anything special to make that work.

The question may be clearer with an example link, screenshots, and details of what browser you are using.

All 4 comments

👋 Thanks for opening your first issue here! 👋

If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.

Sorry, Google translate isn't very clear. I think you are saying that a video in full screen mode is not rotating when the phone orientation changes. This is handled by the browser, Video.js does not do anything special to make that work.

The question may be clearer with an example link, screenshots, and details of what browser you are using.

the same question

As @mister-ben said, if this is regarding auto-rotating when going fullscreen, that isn't something that we can (or should) handle as it's generally handled by the browser and if we tried to "fix" it, we'll just end up fighting the native orientation and cause more issues.
If you have a specific example that you think doesn't fall in the above category, can you please file a new detailed issue with a reduced test case? Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kitsunde picture kitsunde  ·  4Comments

uikoo9 picture uikoo9  ·  4Comments

victorpfm picture victorpfm  ·  4Comments

zhulduz picture zhulduz  ·  3Comments

aagiulian picture aagiulian  ·  3Comments