提交 4944fa03 编写于 作者: G guoshuyu

fix #2343 顺时针旋转手机,视频也顺时针转,所以出现视频倒置情况

上级 2a78bf7c
......@@ -140,8 +140,13 @@ public class OrientationUtils {
}
mClick = true;
if (mIsLand == LAND_TYPE_NULL) {
mScreenType = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
mActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
int request = mActivity.getRequestedOrientation();
if(request == ActivityInfo.SCREEN_ORIENTATION_REVERSE_LANDSCAPE) {
mScreenType = ActivityInfo.SCREEN_ORIENTATION_REVERSE_LANDSCAPE;
} else {
mScreenType = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
}
mActivity.setRequestedOrientation(mScreenType);
if (mVideoPlayer.getFullscreenButton() != null) {
mVideoPlayer.getFullscreenButton().setImageResource(mVideoPlayer.getShrinkImageRes());
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册