use of com.zype.android.webapi.model.video.VideoData in project zype-android by zype.
the class BaseVideoActivity method onShowVideo.
@Override
public void onShowVideo() {
if (mInterface != null) {
mInterface.stop();
}
VideoData videoData = VideoHelper.getFullData(getContentResolver(), mVideoId);
if (!TextUtils.isEmpty(videoData.getDownloadVideoPath())) {
mType = PlayerFragment.TYPE_VIDEO_LOCAL;
} else if (!TextUtils.isEmpty(videoData.getPlayerVideoUrl())) {
mType = PlayerFragment.TYPE_VIDEO_WEB;
} else {
requestVideoUrl(mVideoId);
}
changeFragment(false);
}
Aggregations