|
|
|
|
@ -157,7 +157,6 @@ public class LiveActivity extends BaseActivity implements CustomKeyDownLive.List |
|
|
|
|
Server.get().start(); |
|
|
|
|
setForeground(true); |
|
|
|
|
setRecyclerView(); |
|
|
|
|
setSubtitleView(); |
|
|
|
|
setVideoView(); |
|
|
|
|
setViewModel(); |
|
|
|
|
checkLive(); |
|
|
|
|
@ -201,6 +200,7 @@ public class LiveActivity extends BaseActivity implements CustomKeyDownLive.List |
|
|
|
|
private void setVideoView() { |
|
|
|
|
mPlayers.init(mBinding.exo); |
|
|
|
|
setScale(Setting.getLiveScale()); |
|
|
|
|
ExoUtil.setSubtitleView(mBinding.exo); |
|
|
|
|
mBinding.control.action.invert.setActivated(Setting.isInvert()); |
|
|
|
|
mBinding.control.action.across.setActivated(Setting.isAcross()); |
|
|
|
|
mBinding.control.action.change.setActivated(Setting.isChange()); |
|
|
|
|
@ -211,12 +211,6 @@ public class LiveActivity extends BaseActivity implements CustomKeyDownLive.List |
|
|
|
|
mBinding.video.addOnLayoutChangeListener((view, left, top, right, bottom, oldLeft, oldTop, oldRight, oldBottom) -> mPiP.update(getActivity(), view)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void setSubtitleView() { |
|
|
|
|
mBinding.exo.getSubtitleView().setApplyEmbeddedFontSizes(false); |
|
|
|
|
mBinding.exo.getSubtitleView().setStyle(ExoUtil.getCaptionStyle()); |
|
|
|
|
mBinding.exo.getSubtitleView().setApplyEmbeddedStyles(!Setting.isCaption()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void setDecode() { |
|
|
|
|
mBinding.control.action.decode.setText(mPlayers.getDecodeText()); |
|
|
|
|
} |
|
|
|
|
|