|
|
|
|
@ -727,7 +727,6 @@ public class LiveActivity extends BaseActivity implements CustomKeyDownLive.List |
|
|
|
|
showProgress(); |
|
|
|
|
break; |
|
|
|
|
case Player.STATE_READY: |
|
|
|
|
checkRotate(); |
|
|
|
|
setMetadata(); |
|
|
|
|
resetToggle(); |
|
|
|
|
hideProgress(); |
|
|
|
|
@ -744,13 +743,6 @@ public class LiveActivity extends BaseActivity implements CustomKeyDownLive.List |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void checkRotate() { |
|
|
|
|
if (!isRotate() && mPlayers.isPortrait()) { |
|
|
|
|
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_USER_PORTRAIT); |
|
|
|
|
setRotate(true); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void setSpeedVisible() { |
|
|
|
|
mBinding.control.action.speed.setVisibility(mPlayers.isVod() ? View.VISIBLE : View.GONE); |
|
|
|
|
} |
|
|
|
|
|