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

一个视频,多个视频片段问题 #64

Closed
zhan2046 opened this issue Feb 16, 2017 · 6 comments
Closed

一个视频,多个视频片段问题 #64

zhan2046 opened this issue Feb 16, 2017 · 6 comments

Comments

@zhan2046
Copy link

我看到这几行代码:
private void initIJKPlayer(Message msg) { mediaPlayer = new IjkMediaPlayer(); mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); try { mediaPlayer.setDataSource(((GSYModel) msg.obj).getUrl(), ((GSYModel) msg.obj).getMapHeadData()); } catch (IOException e) { e.printStackTrace(); } }

目前只支持网络url吗?
我现在遇到一个url返回多个视频片段,我需要手动拼成m3u8文件,然后怎么样才能播放呢

@CarGuo
Copy link
Owner

CarGuo commented Feb 16, 2017

你只能是拼成m3u8,播放器处理这样的逻辑不是很合理呢~

@zhan2046
Copy link
Author

@CarGuo 通过concat协议解决了

@hhyyzz
Copy link

hhyyzz commented Mar 10, 2017

@CarGuo 这个播放器支持任意格式的视频文件吗?

@mahmoudelfeel
Copy link

How did you solve it by concat ?

@zhan2046
Copy link
Author

zhan2046 commented Jan 15, 2018

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

5 participants
@CarGuo @hhyyzz @zhan2046 @mahmoudelfeel and others