提交 3cc7aad0 编写于 作者: G guoshuyu

update support isNeedRotateWithSystem with Detail

上级 b4b845c2
......@@ -86,7 +86,7 @@ public class AudioDetailPlayer extends AppCompatActivity {
Debuger.printfError("***** onPrepared **** " + objects[1]);
super.onPrepared(url, objects);
//开始播放了才能旋转和全屏
orientationUtils.setEnable(true);
orientationUtils.setEnable(detailPlayer.isRotateWithSystem());
isPlay = true;
//设置 seek 的临近帧。
......
......@@ -103,7 +103,7 @@ public class DanmkuVideoActivity extends AppCompatActivity {
public void onPrepared(String url, Object... objects) {
super.onPrepared(url, objects);
//开始播放了才能旋转和全屏
orientationUtils.setEnable(true);
orientationUtils.setEnable(danmakuVideoPlayer.isRotateWithSystem());
isPlay = true;
getDanmu();
}
......
......@@ -105,7 +105,7 @@ public class DetailDownloadPlayer extends AppCompatActivity {
Debuger.printfError("***** onPrepared **** " + objects[1]);
super.onPrepared(url, objects);
//开始播放了才能旋转和全屏
orientationUtils.setEnable(true);
orientationUtils.setEnable(detailPlayer.isRotateWithSystem());
isPlay = true;
//设置 seek 的临近帧。
......
......@@ -116,7 +116,7 @@ public class DetailMoreTypeActivity extends AppCompatActivity {
super.onPrepared(url, objects);
//开始播放了才能旋转和全屏
//orientationUtils.setEnable(true);
orientationUtils.setEnable(false);
orientationUtils.setEnable(detailPlayer.isRotateWithSystem());
isPlay = true;
}
......
......@@ -89,7 +89,7 @@ public class DetailNormalActivityPlayer extends Activity {
Debuger.printfError("***** onPrepared **** " + objects[1]);
super.onPrepared(url, objects);
//开始播放了才能旋转和全屏
orientationUtils.setEnable(true);
orientationUtils.setEnable(detailPlayer.isRotateWithSystem());
isPlay = true;
//设置 seek 的临近帧。
......
......@@ -134,6 +134,7 @@ public class DetailPlayer extends AppCompatActivity {
.setRotateViewAuto(false)
//仅仅横屏旋转,不变直
//.setOnlyRotateLand(true)
.setRotateWithSystem(true)
.setLockLand(true)
.setAutoFullWithSize(true)
.setShowFullAnimation(false)
......@@ -271,7 +272,7 @@ public class DetailPlayer extends AppCompatActivity {
super.onConfigurationChanged(newConfig);
//如果旋转了就全屏
if (isPlay && !isPause) {
detailPlayer.onConfigurationChanged(this, newConfig, needRotateSystem() ? orientationUtils : null, true, true);
detailPlayer.onConfigurationChanged(this, newConfig, orientationUtils, true, true);
}
}
......
......@@ -85,7 +85,7 @@ public class InputUrlDetailActivity extends AppCompatActivity {
public void onPrepared(String url, Object... objects) {
super.onPrepared(url, objects);
//开始播放了才能旋转和全屏
orientationUtils.setEnable(true);
orientationUtils.setEnable(detailPlayer.isRotateWithSystem());
isPlay = true;
}
......
......@@ -85,7 +85,7 @@ public class ScrollingActivity extends AppCompatActivity {
Debuger.printfError("***** onPrepared **** " + objects[1]);
super.onPrepared(url, objects);
//开始播放了才能旋转和全屏
orientationUtils.setEnable(true);
orientationUtils.setEnable(detailPlayer.isRotateWithSystem());
isPlay = true;
root.removeView(fab);
}
......
......@@ -90,7 +90,7 @@ public class GSYExoSubTitleDetailPlayer extends AppCompatActivity {
Debuger.printfError("***** onPrepared **** " + objects[1]);
super.onPrepared(url, objects);
//开始播放了才能旋转和全屏
orientationUtils.setEnable(true);
orientationUtils.setEnable(detailPlayer.isRotateWithSystem());
isPlay = true;
//设置 seek 的临近帧。
......
......@@ -66,7 +66,7 @@ public class SimpleDetailActivityMode2 extends AppCompatActivity {
public void onPrepared(String url, Object... objects) {
super.onPrepared(url, objects);
//开始播放了才能旋转和全屏
orientationUtils.setEnable(true);
orientationUtils.setEnable(detailPlayer.isRotateWithSystem());
isPlay = true;
}
......
......@@ -65,7 +65,7 @@ public class SwitchDetailActivity extends AppCompatActivity {
public void onPrepared(String url, Object... objects) {
super.onPrepared(url, objects);
//开始播放了才能旋转和全屏
orientationUtils.setEnable(true);
orientationUtils.setEnable(detailPlayer.isRotateWithSystem());
}
@Override
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册