GiraffePlayer icon indicating copy to clipboard operation
GiraffePlayer copied to clipboard

视频被拆分为多个播放地址,如何调用播放器播放

Open lileichinasoft opened this issue 8 years ago • 4 comments

例如: http://url1.xxxxxxxxxxxx/1.mp4 http://url1.xxxxxxxxxxxx/2.mp4 http://url1.xxxxxxxxxxxx/3.mp4

谢谢

lileichinasoft avatar Mar 03 '16 08:03 lileichinasoft

可以尝试一个视频播放完毕后马上加载另一个视频,视频播放完毕会回调OnCompletionListener 可以搜索GiraffePlayer中的setOnCompletionListener

tcking avatar Mar 03 '16 08:03 tcking

@tcking 方法setOnCompletionListener是IjkVideoView对象上的,对外没有暴露接口,获取不到

videoView = (IjkVideoView) activity.findViewById(R.id.video_view); videoView.setOnCompletionListener(new IMediaPlayer.OnCompletionListener() { @Override public void onCompletion(IMediaPlayer mp) { statusChange(STATUS_COMPLETED); } });

lileichinasoft avatar Mar 03 '16 09:03 lileichinasoft

下个版本增加回调,目前你可以clone后修改

tcking avatar Mar 04 '16 11:03 tcking

@tcking 好的, 多谢

lileichinasoft avatar Mar 06 '16 12:03 lileichinasoft