From 1981dee5aec45793d3c4ebdbc4e637528c71b3c5 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 03 二月 2021 19:20:47 +0800 Subject: [PATCH] 'PPTV' --- BuWanVideo/src/com/weikou/beibeivideo/ui/media/VideoDetailActivity.java | 33 +++++++-------------------------- 1 files changed, 7 insertions(+), 26 deletions(-) diff --git a/BuWanVideo/src/com/weikou/beibeivideo/ui/media/VideoDetailActivity.java b/BuWanVideo/src/com/weikou/beibeivideo/ui/media/VideoDetailActivity.java index 37a0774..0c7b8a5 100644 --- a/BuWanVideo/src/com/weikou/beibeivideo/ui/media/VideoDetailActivity.java +++ b/BuWanVideo/src/com/weikou/beibeivideo/ui/media/VideoDetailActivity.java @@ -56,10 +56,11 @@ import com.weikou.beibeivideo.entity.VideoDetailInfo; import com.weikou.beibeivideo.entity.VideoInfo; import com.weikou.beibeivideo.entity.VideoResource; +import com.weikou.beibeivideo.entity.video.ChangeVideoEvent; 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.FXBrowserActivity; +import com.weikou.beibeivideo.ui.video.VideoPlayerBrowserActivity; import com.weikou.beibeivideo.ui.video.VideoPlayerActivity; import com.weikou.beibeivideo.util.BeibeiConstant; import com.weikou.beibeivideo.util.VideoUtil; @@ -132,7 +133,7 @@ public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.video_detail_activity); - VideoUtil.videoEpisodeList.clear(); + VideoUtil.clearVideoEpisodeList(this); /* * 璁$畻鐘舵�佹爮楂樺害骞惰缃� */ @@ -386,7 +387,7 @@ return; } else if (playUrl.getPlayType() == 1) { Intent intent = new Intent(VideoDetailActivity.this, - FXBrowserActivity.class); + VideoPlayerBrowserActivity.class); intent.putExtra("url", playUrl.getUrl()); startActivity(intent); saveWatchHistory("椋庤"); @@ -694,8 +695,7 @@ new TypeToken<VideoInfo>() { }.getType()); if (videoInfo != null) { - VideoUtil.videoEpisodeList.clear(); - VideoUtil.videoEpisodeList.addAll(videoInfo.getVideoDetailList()); + VideoUtil.saveVideoEpisodeList(BeibeiVideoApplication.application,videoInfo.getVideoDetailList(),false); } // 闄勫姞瀛楁 if (jsonObject.optJSONObject("Extra1") != null) { @@ -849,6 +849,8 @@ .optString("Aid")); info.setVid(jsonObject.getJSONObject("Data") .optString("Vid")); + info.setCode(jsonObject.getJSONObject("Data") + .optString("Code")); playUrl = info; if (videoInfo == null) { return; @@ -880,28 +882,7 @@ checkConfiguration(getResources().getConfiguration()); } - public static class ChangeVideoEvent { - private VideoInfo videoInfo; - private String tag; - - public VideoInfo getVideoInfo() { - return videoInfo; - } - - public void setVideoInfo(VideoInfo videoInfo) { - this.videoInfo = videoInfo; - } - - public String getTag() { - return tag; - } - - public void setTag(String tag) { - this.tag = tag; - } - - } @Override public void onClick(View v) { -- Gitblit v1.8.0