private void init() {
int i = 8;
this.mTask = new AlbumTaskRegister(this);
this.mBackgroundView = (ImageView) getViewById(R.id.album_loading_bg);
this.mBackgroundView.setTag(R.id.scale_type, ScaleType.CENTER_CROP);
this.mBottomFrame = (FrameLayout) getViewById(R.id.play_album_bottom_frame);
this.mFloatFrame = (FrameLayout) getViewById(R.id.layout_album_float_frame);
this.mAlbumPlayFragment = new AlbumPlayFragment(this);
this.mVideoController = new AlbumVideoController(this, getViewById(R.id.player_full_controller_contain));
this.mHalfFragment = new AlbumHalfFragment(this);
this.mHalfFragment.onCreate(null);
LeMessageManager.getInstance().dispatchMessage(this, new LeMessage(801));
this.mPlayObservable = new PlayObservable(this);
this.mGestureController = new AlbumGestureController(this, this.mAlbumPlayFragment, this.mGestureObservable);
this.mPlayAdController = new AlbumPlayAdController(this);
this.mVipTrailController = new AlbumPlayGeneralTrailController(this);
this.mPlayNextController = new AlbumPlayNextController(this, PlayerType.MAIN);
this.mRedPacketController = new AlbumRedPacketController(this);
this.mBlockController = new AlbumBlockController();
this.mController = new AlbumController(this);
this.mTopController = new AlbumErrorTopController(this);
this.mNetChangeController = new AlbumNetChangeController(this);
this.mRecommendController = new AlbumRecommendController(this);
this.mLongWatchController = new LongWatchController(this);
this.mLoadController = new AlbumLoadController(this, this.mBottomFrame);
this.mMidAdTipController = new AlbumMidAdController(this);
this.rootView = (AlbumPlayContainView) getViewById(R.id.play_album_parent_view);
this.rootView.setLongWatchController(this.mLongWatchController);
getSupportFragmentManager().beginTransaction().add(R.id.play_album_ad_contain, this.mPlayAdController.getAdFragment()).commitAllowingStateLoss();
getViewById(R.id.play_album_half_frame).setVisibility(this.mIsPlayingNonCopyright ? 8 : 0);
View viewById = getViewById(R.id.play_album_toolbar);
if (!this.mIsPlayingNonCopyright) {
i = 0;
}
viewById.setVisibility(i);
if (this.mIsPlayingNonCopyright) {
initWebView();
}
checkDrmPlugin(false);
}
AlbumPlayActivity.java 文件源码
java
阅读 23
收藏 0
点赞 0
评论 0
项目:letv
作者:
评论列表
文章目录