| | |
| | | import com.weikou.beibeivideo.ui.BaseActivity; |
| | | import com.weikou.beibeivideo.ui.ad.PlayVideoPreADFragment; |
| | | import com.weikou.beibeivideo.ui.common.ShareActivity; |
| | | import com.weikou.beibeivideo.ui.mine.PPTVPlayFragment; |
| | | import com.weikou.beibeivideo.ui.video.VideoPlayerBrowserActivity; |
| | | import com.weikou.beibeivideo.ui.video.FunshionPlayerFragment; |
| | | import com.weikou.beibeivideo.ui.video.VideoPlayerActivity; |
| | |
| | | OnClickListener { |
| | | |
| | | private final String TAG = VideoDetailActivity2.class.getName(); |
| | | |
| | | //外层容器 |
| | | LinearLayout ll_other; |
| | | FrameLayout fl_pptv; |
| | | |
| | | |
| | | // private boolean mLandscape; |
| | | private VideoInfo videoInfo; |
| | |
| | | } |
| | | |
| | | private void initView() { |
| | | ll_other = findViewById(R.id.ll_other); |
| | | fl_pptv = findViewById(R.id.fl_pptv); |
| | | fl_pptv.setVisibility(View.GONE); |
| | | |
| | | iv_select_play = findViewById(R.id.iv_select_play); |
| | | tv_back = findViewById(R.id.iv_back); |
| | | iv_download_failure = findViewById(R.id.iv_download_failure); |
| | |
| | | public void onSuccessPerfect(int statusCode, |
| | | Header[] headers, JSONObject jsonObject) |
| | | throws Exception { |
| | | |
| | | boolean pptv = true; |
| | | if (pptv) { |
| | | fl_pptv.setVisibility(View.VISIBLE); |
| | | ll_other.setVerticalGravity(View.GONE); |
| | | getSupportFragmentManager().beginTransaction().replace(R.id.fl_pptv, new PPTVPlayFragment()).commit(); |
| | | if (progressDialog.isShowing()) { |
| | | progressDialog.dismiss(); |
| | | } |
| | | return; |
| | | } else { |
| | | fl_pptv.setVisibility(View.GONE); |
| | | ll_other.setVisibility(View.VISIBLE); |
| | | } |
| | | |
| | | // if (BeibeiConstant.DEBUG) |
| | | // Toast.makeText(VideoDetailActivity2.this, |
| | | // "onSuccessPerfect", |