| | |
| | | import com.weikou.beibeivideo.entity.VideoDetailInfo; |
| | | import com.weikou.beibeivideo.entity.VideoInfo; |
| | | import com.weikou.beibeivideo.ui.media.VideoDetailActivity; |
| | | import com.weikou.beibeivideo.ui.media.VideoDetailActivity2; |
| | | import com.weikou.beibeivideo.util.DownloadUtils; |
| | | import com.weikou.beibeivideo.util.VideoUtil; |
| | | |
| | |
| | | } |
| | | } |
| | | Intent intent = new Intent(v.getContext(), |
| | | VideoDetailActivity.class); |
| | | VideoDetailActivity2.class); |
| | | if (!TextUtils.isEmpty(DownloadUtils |
| | | .getOfflinePath(v.getContext(), videoId, |
| | | videoDetailId))) { |
| | |
| | | intent.putExtra("video_info", videoInfo); |
| | | intent.putExtra("playing_position", |
| | | playingPosition); |
| | | intent.putExtra("from", "download"); |
| | | con.startActivity(intent); |
| | | } else { |
| | | if (!ConnectionUtils.isNetworkAvailable(v |
| | |
| | | } |
| | | } |
| | | Intent intent = new Intent(v.getContext(), |
| | | VideoDetailActivity.class); |
| | | VideoDetailActivity2.class); |
| | | intent.putExtra("orientation_landscape", true); |
| | | intent.putExtra("video_info", videoInfo); |
| | | intent.putExtra("playing_position", |
| | | playingPosition); |
| | | intent.putExtra("from", "download"); |
| | | v.getContext().startActivity(intent); |
| | | } |
| | | } |