Search in sources :

Example 16 with VideoData

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);
}
Also used : VideoData(com.zype.android.webapi.model.video.VideoData)

Aggregations

VideoData (com.zype.android.webapi.model.video.VideoData)16 Cursor (android.database.Cursor)5 Nullable (android.support.annotation.Nullable)5 ArrayList (java.util.ArrayList)5 Subscribe (com.squareup.otto.Subscribe)3 ConsumerFavoriteVideoData (com.zype.android.webapi.model.consumers.ConsumerFavoriteVideoData)3 Intent (android.content.Intent)2 ConsumerFavoriteVideo (com.zype.android.webapi.model.consumers.ConsumerFavoriteVideo)2 Video (com.zype.android.webapi.model.video.Video)2 Notification (android.app.Notification)1 NotificationManager (android.app.NotificationManager)1 PendingIntent (android.app.PendingIntent)1 ContentValues (android.content.ContentValues)1 Context (android.content.Context)1 Uri (android.net.Uri)1 Bundle (android.os.Bundle)1 NonNull (android.support.annotation.NonNull)1 Fragment (android.support.v4.app.Fragment)1 View (android.view.View)1 TextView (android.widget.TextView)1