| | |
| | | } |
| | | |
| | | } else if (playUrl.getResource().getName().contains("风行")) { |
| | | if(playUrl.getPlayType() == 2){ |
| | | // 不是vivo上线 |
| | | if(!AndroidManifestUtil.isVIVOChannel(getApplicationContext())){ |
| | | playUrl.setPlayType(1); |
| | | } |
| | | } |
| | | if (playUrl.getPlayType() == 0) { |
| | | Toast.makeText(VideoDetailActivity2.this, "此节目不可播!", |
| | | Toast.LENGTH_LONG).show(); |
| | |
| | | startActivity(intent); |
| | | saveWatchHistory("风行"); |
| | | initPlayer(); |
| | | } else if (playUrl.getPlayType() == 2) {//SDK播放 |
| | | } else if (playUrl.getPlayType() == 2 && AndroidManifestUtil.isVIVOChannel(getApplicationContext())) {//SDK播放 |
| | | //播放风行视频 |
| | | //添加风行播放页 |
| | | // mFunshionPlayerFragment = new FunshionPlayerFragment(); |
| | |
| | | // } |
| | | // fl_video_play_background.setVisibility(View.GONE); |
| | | |
| | | |
| | | // 风行网页播放器 |
| | | // iv_select_play.setVisibility(View.GONE); |
| | | // iv_background.setClickable(false); |
| | | // hideImage(); |
| | | // getSupportFragmentManager().beginTransaction().replace(R.id.fragment_video_play_container, new FunshionWebPlayerFragment("测试标题", "http://www.fun.tv/vplay/g-1018345/")).commit(); |
| | | // return; |
| | | // 风行原生播放器,用于新上架的链接 |
| | | iv_select_play.setVisibility(View.GONE); |
| | | iv_background.setClickable(false); |
| | | hideImage(); |
| | | String url = playUrl.getUrl(); |
| | | getSupportFragmentManager().beginTransaction().replace(R.id.fragment_video_play_container, new FunshionWebPlayerFragment(videoInfo.getName(), url)).commit(); |
| | | return; |
| | | } |
| | | |
| | | } else { |