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

ijkplayer播放加密的m3u8使用本地缓存一直卡顿 #8

Open
xhigher opened this issue Apr 23, 2020 · 6 comments
Open

ijkplayer播放加密的m3u8使用本地缓存一直卡顿 #8

xhigher opened this issue Apr 23, 2020 · 6 comments

Comments

@xhigher
Copy link

xhigher commented Apr 23, 2020

在HttpResponse.send方法里
sendBodyWithCorrectTransferAndEncoding(outputStream);
outputStream.flush();
这里会抛异常Broken pipe

@JeffMony
Copy link
Owner

什么样的视频啊?可以发出来我帮忙看一下。

@xhigher
Copy link
Author

xhigher commented Apr 23, 2020 via email

@xhigher
Copy link
Author

xhigher commented Apr 23, 2020

不用缓存得情况下,ijkplayer是可以播放加密得m3u8;分析日志看到,ijkplayer是能获取第一个ts0的,能播放出来,但是数据传输结束符之类未能识别,最后只能超时(30s)后又重新发了一次ts0,依次每次都是又两次相同ts的请求,间隔30s。

@xhigher
Copy link
Author

xhigher commented Apr 24, 2020

找到了一个非常规的方法暂时修复上面的问题将连接超时时间设短1~3s,不过应该容易出问题;我用了第三方的AndroidAsync重写一个proxyserver就可以了,毕竟他们已经比较稳定了,建议你们也整合进来。

@JeffMony
Copy link
Owner

找到了一个非常规的方法暂时修复上面的问题将连接超时时间设短1~3s,不过应该容易出问题;我用了第三方的AndroidAsync重写一个proxyserver就可以了,毕竟他们已经比较稳定了,建议你们也整合进来。

LOVE_BigLi,这是我的微信好,可以交流一下。

@JeffMony
Copy link
Owner

找到了一个非常规的方法暂时修复上面的问题将连接超时时间设短1~3s,不过应该容易出问题;我用了第三方的AndroidAsync重写一个proxyserver就可以了,毕竟他们已经比较稳定了,建议你们也整合进来。

最近工作比较忙,我一直都在构思如何维护好这个库,做成一个真正的边下边播的库,因为网上这方面的库有,但是不全。

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