Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lileichinasoft opened this issue Mar 3, 2016 · 4 comments

Comments

@lileichinasoft
Copy link

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

谢谢

@tcking
Copy link
Owner

tcking commented Mar 3, 2016

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

@lileichinasoft
Copy link
Author

@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); } });

@tcking
Copy link
Owner

tcking commented Mar 4, 2016

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

@lileichinasoft
Copy link
Author

@tcking 好的, 多谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants