本文整理汇总了Java中com.android.tedcoder.wkvideoplayer.model.Video.setVideoName方法的典型用法代码示例。如果您正苦于以下问题:Java Video.setVideoName方法的具体用法?Java Video.setVideoName怎么用?Java Video.setVideoName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.android.tedcoder.wkvideoplayer.model.Video
的用法示例。
在下文中一共展示了Video.setVideoName方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onClick
import com.android.tedcoder.wkvideoplayer.model.Video; //导入方法依赖的package包/类
@Override
public void onClick(View view) {
mPlayBtnView.setVisibility(View.GONE);
mSuperVideoPlayer.setVisibility(View.VISIBLE);
mSuperVideoPlayer.setAutoHideController(false);
Video video = new Video();
VideoUrl videoUrl1 = new VideoUrl();
videoUrl1.setFormatName("720P");
videoUrl1.setFormatUrl("http://7xkbzx.com1.z0.glb.clouddn.com/SampleVideo_1080x720_20mb.mp4");
VideoUrl videoUrl2 = new VideoUrl();
videoUrl2.setFormatName("480P");
videoUrl2.setFormatUrl("http://7xkbzx.com1.z0.glb.clouddn.com/SampleVideo_720x480_20mb.mp4");
ArrayList<VideoUrl> arrayList1 = new ArrayList<>();
arrayList1.add(videoUrl1);
arrayList1.add(videoUrl2);
video.setVideoName("测试视频一");
video.setVideoUrl(arrayList1);
Video video2 = new Video();
VideoUrl videoUrl3 = new VideoUrl();
videoUrl3.setFormatName("720P");
videoUrl3.setFormatUrl("http://7xkbzx.com1.z0.glb.clouddn.com/SampleVideo_1080x720_10mb.mp4");
VideoUrl videoUrl4 = new VideoUrl();
videoUrl4.setFormatName("480P");
videoUrl4.setFormatUrl("http://7xkbzx.com1.z0.glb.clouddn.com/SampleVideo_720x480_10mb.mp4");
ArrayList<VideoUrl> arrayList2 = new ArrayList<>();
arrayList2.add(videoUrl3);
arrayList2.add(videoUrl4);
video2.setVideoName("测试视频二");
video2.setVideoUrl(arrayList2);
ArrayList<Video> videoArrayList = new ArrayList<>();
videoArrayList.add(video);
videoArrayList.add(video2);
mSuperVideoPlayer.loadMultipleVideo(videoArrayList,0,0,0);
}
示例2: onClick
import com.android.tedcoder.wkvideoplayer.model.Video; //导入方法依赖的package包/类
@Override
public void onClick(View view) {
mPlayBtnView.setVisibility(View.GONE);
mSuperVideoPlayer.setVisibility(View.VISIBLE);
mSuperVideoPlayer.setAutoHideController(false);
Video video = new Video();
VideoUrl videoUrl1 = new VideoUrl();
videoUrl1.setFormatName("720P");
videoUrl1.setFormatUrl("http://2449.vod.myqcloud.com/2449_43b6f696980311e59ed467f22794e792.f20.mp4");
VideoUrl videoUrl2 = new VideoUrl();
videoUrl2.setFormatName("480P");
videoUrl2.setFormatUrl("http://2449.vod.myqcloud.com/2449_43b6f696980311e59ed467f22794e792.f20.mp4");
ArrayList<VideoUrl> arrayList1 = new ArrayList<>();
arrayList1.add(videoUrl1);
arrayList1.add(videoUrl2);
video.setVideoName("测试视频一");
video.setVideoUrl(arrayList1);
Video video2 = new Video();
VideoUrl videoUrl3 = new VideoUrl();
videoUrl3.setFormatName("720P");
videoUrl3.setFormatUrl("http://2449.vod.myqcloud.com/2449_ded7b566b37911e5942f0b208e48548d.f20.mp4");
VideoUrl videoUrl4 = new VideoUrl();
videoUrl4.setFormatName("480P");
videoUrl4.setFormatUrl("http://2449.vod.myqcloud.com/2449_ded7b566b37911e5942f0b208e48548d.f20.mp4");
ArrayList<VideoUrl> arrayList2 = new ArrayList<>();
arrayList2.add(videoUrl3);
arrayList2.add(videoUrl4);
video2.setVideoName("测试视频二");
video2.setVideoUrl(arrayList2);
ArrayList<Video> videoArrayList = new ArrayList<>();
videoArrayList.add(video);
videoArrayList.add(video2);
mSuperVideoPlayer.loadMultipleVideo(videoArrayList,0,0,0);
}
示例3: onClick
import com.android.tedcoder.wkvideoplayer.model.Video; //导入方法依赖的package包/类
@Override
public void onClick(View view) {
mPlayBtnView.setVisibility(View.GONE);
mSuperVideoPlayer.setVisibility(View.VISIBLE);
mSuperVideoPlayer.setAutoHideController(false);
Video video = new Video();
VideoUrl videoUrl1 = new VideoUrl();
videoUrl1.setFormatName("720P");
videoUrl1.setFormatUrl("http://o7b0tslyh.bkt.clouddn.com/SampleVideo_1280x720_2mb.mp4");
VideoUrl videoUrl2 = new VideoUrl();
videoUrl2.setFormatName("480P");
videoUrl2.setFormatUrl("http://o7b0tslyh.bkt.clouddn.com/SampleVideo_1280x720_2mb.mp4");
ArrayList<VideoUrl> arrayList1 = new ArrayList<>();
arrayList1.add(videoUrl1);
arrayList1.add(videoUrl2);
video.setVideoName("动物一");
video.setVideoUrl(arrayList1);
Video video2 = new Video();
VideoUrl videoUrl3 = new VideoUrl();
videoUrl3.setFormatName("720P");
videoUrl3.setFormatUrl("http://o7b0tslyh.bkt.clouddn.com/videoviewdemo.mp4");
VideoUrl videoUrl4 = new VideoUrl();
videoUrl4.setFormatName("480P");
videoUrl4.setFormatUrl("http://o7b0tslyh.bkt.clouddn.com/videoviewdemo.mp4");
ArrayList<VideoUrl> arrayList2 = new ArrayList<>();
arrayList2.add(videoUrl3);
arrayList2.add(videoUrl4);
video2.setVideoName("动物二");
video2.setVideoUrl(arrayList2);
ArrayList<Video> videoArrayList = new ArrayList<>();
videoArrayList.add(video);
videoArrayList.add(video2);
mSuperVideoPlayer.loadMultipleVideo(videoArrayList,0,0,0);
}
示例4: onClick
import com.android.tedcoder.wkvideoplayer.model.Video; //导入方法依赖的package包/类
@Override
public void onClick(View view) {
mPlayBtnView.setVisibility(View.GONE);
mSuperVideoPlayer.setVisibility(View.VISIBLE);
Video video = new Video();
VideoUrl videoUrl1 = new VideoUrl();
videoUrl1.setFormatName("720P");
videoUrl1.setFormatUrl("http://7xkbzx.com1.z0.glb.clouddn.com/SampleVideo_1080x720_20mb.mp4");
VideoUrl videoUrl2 = new VideoUrl();
videoUrl2.setFormatName("480P");
videoUrl2.setFormatUrl("http://7xkbzx.com1.z0.glb.clouddn.com/SampleVideo_720x480_20mb.mp4");
ArrayList<VideoUrl> arrayList1 = new ArrayList<>();
arrayList1.add(videoUrl1);
arrayList1.add(videoUrl2);
video.setVideoName("房源视频");
video.setVideoUrl(arrayList1);
Video video2 = new Video();
VideoUrl videoUrl3 = new VideoUrl();
videoUrl3.setFormatName("720P");
videoUrl3.setFormatUrl("http://7xkbzx.com1.z0.glb.clouddn.com/SampleVideo_1080x720_10mb.mp4");
VideoUrl videoUrl4 = new VideoUrl();
videoUrl4.setFormatName("480P");
videoUrl4.setFormatUrl("http://7xkbzx.com1.z0.glb.clouddn.com/SampleVideo_720x480_10mb.mp4");
ArrayList<VideoUrl> arrayList2 = new ArrayList<>();
arrayList2.add(videoUrl3);
arrayList2.add(videoUrl4);
video2.setVideoName("小区视频");
video2.setVideoUrl(arrayList2);
ArrayList<Video> videoArrayList = new ArrayList<>();
videoArrayList.add(video);
videoArrayList.add(video2);
mSuperVideoPlayer.loadMultipleVideo(videoArrayList);
}
示例5: initVideo
import com.android.tedcoder.wkvideoplayer.model.Video; //导入方法依赖的package包/类
private void initVideo() {
if(mSuperVideoPlayer==null) {
return;
}
mSuperVideoPlayer.setCovorVisible();
mSuperVideoPlayer.requestFocus();
mSuperVideoPlayer.setVisibility(View.VISIBLE);
mSuperVideoPlayer.setAutoVisibleView(headLayout);
mSuperVideoPlayer.setCollectView(toleft_iv_right);
mSuperVideoPlayer.setShareView(iv_right);
mSuperVideoPlayer.setAutoHideController(true);
mSuperVideoPlayer.getSuperVideoView().setOnErrorListener(new MediaPlayer.OnErrorListener() {
@Override
public boolean onError(MediaPlayer mp, int what, int extra) {
mSuperVideoPlayer.setPlayError(true);
currentMsec = mSuperVideoPlayer.getCurrentMsec();
mSuperVideoPlayer.stopUpdateTimer();
mSuperVideoPlayer.dismissProgress();
mPlayErrorLayout.setVisibility(View.VISIBLE);
return true;
}
});
String videoURL = videoItem.getVideoURL();
video = new Video();
video.setVideoName(videoItem.getTitle());
VideoUrl videoUrl1 = new VideoUrl();
videoUrl1.setFormatName("超清");
videoUrl1.setFormatUrl(videoURL + ".f30.mp4");
VideoUrl videoUrl2 = new VideoUrl();
videoUrl2.setFormatName("高清");
videoUrl2.setFormatUrl(videoURL + ".f20.mp4");
VideoUrl videoUrl3 = new VideoUrl();
videoUrl3.setFormatName("标清");
videoUrl3.setFormatUrl(videoURL + ".f10.mp4");
ArrayList<VideoUrl> list = new ArrayList<>();
list.add(videoUrl1);
list.add(videoUrl2);
list.add(videoUrl3);
video.setVideoUrl(list);
}
示例6: onClick
import com.android.tedcoder.wkvideoplayer.model.Video; //导入方法依赖的package包/类
@Override
public void onClick(View view) {
mPlayBtnView.setVisibility(View.GONE);
mSuperVideoPlayer.setVisibility(View.VISIBLE);
mSuperVideoPlayer.setAutoHideController(false);
String url="http://video.uning.tv/4523da0c-9ae5-4702-8736-a05f43e2ca36/film/ac52b21e-60ce-48a6-83e8-b0cd31834a02.mp4?s=13373435";
Video video = new Video();
VideoUrl videoUrl1 = new VideoUrl();
videoUrl1.setFormatName("720P");
// videoUrl1.setFormatUrl("http://7xkbzx.com1.z0.glb.clouddn.com/SampleVideo_1080x720_20mb.mp4");
videoUrl1.setFormatUrl(url);
VideoUrl videoUrl2 = new VideoUrl();
videoUrl2.setFormatName("480P");
// videoUrl2.setFormatUrl("http://7xkbzx.com1.z0.glb.clouddn.com/SampleVideo_720x480_20mb.mp4");
videoUrl1.setFormatUrl(url);
ArrayList<VideoUrl> arrayList1 = new ArrayList<>();
arrayList1.add(videoUrl1);
arrayList1.add(videoUrl2);
video.setVideoName("测试视频一");
video.setVideoUrl(arrayList1);
Video video2 = new Video();
VideoUrl videoUrl3 = new VideoUrl();
videoUrl3.setFormatName("720P");
// videoUrl3.setFormatUrl("http://7xkbzx.com1.z0.glb.clouddn.com/SampleVideo_1080x720_10mb.mp4");
videoUrl1.setFormatUrl(url);
VideoUrl videoUrl4 = new VideoUrl();
videoUrl4.setFormatName("480P");
// videoUrl4.setFormatUrl("http://7xkbzx.com1.z0.glb.clouddn.com/SampleVideo_720x480_10mb.mp4");
videoUrl1.setFormatUrl(url);
ArrayList<VideoUrl> arrayList2 = new ArrayList<>();
arrayList2.add(videoUrl3);
arrayList2.add(videoUrl4);
video2.setVideoName("测试视频二");
video2.setVideoUrl(arrayList2);
ArrayList<Video> videoArrayList = new ArrayList<>();
videoArrayList.add(video);
videoArrayList.add(video2);
mSuperVideoPlayer.loadMultipleVideo(videoArrayList,0,0,0);
}