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

您好,有问题想请教您 #1

Open
Liar1995 opened this issue Dec 29, 2016 · 6 comments
Open

您好,有问题想请教您 #1

Liar1995 opened this issue Dec 29, 2016 · 6 comments

Comments

@Liar1995
Copy link

在对原视频加密的部分,有点不理解,能不能加QQ:294320104 详细谈一下,真心希望您能帮我,感激不尽

@likaci
Copy link
Owner

likaci commented Dec 30, 2016

@Liar1995 你好,博文地址是在
http://blog.xiazhiri.com/Android-Play-Encrypted-Video.html
具体不理解的地方是?

@jobwq
Copy link

jobwq commented Feb 17, 2017

播放网络视频加载速度很慢,有什么办法解决吗

@Liar1995
Copy link
Author

Liar1995 commented Aug 16, 2017

@likaci 你好,我在用播放一个200MB左右的加密视频,NanoHTTPD会报这个错误,您有遇到过吗,我google了 EPIPE (Broken pipe) 相关错误但是并没有解决,以下是错误信息:

08-16 09:53:54.088 30562-11419/com.xiazhiri.videoEncrypt E/fi.iki.elonen.NanoHTTPD: Could not send response to the client java.net.SocketException: sendto failed: EPIPE (Broken pipe) at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:612) at libcore.io.IoBridge.sendto(IoBridge.java:581) at java.net.PlainSocketImpl.write(PlainSocketImpl.java:520) at java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:43) at java.net.PlainSocketImpl$PlainSocketOutputStream.write(PlainSocketImpl.java:272) at fi.iki.elonen.NanoHTTPD$Response.sendBody(NanoHTTPD.java:1620) at fi.iki.elonen.NanoHTTPD$Response.sendBodyWithCorrectEncoding(NanoHTTPD.java:1593) at fi.iki.elonen.NanoHTTPD$Response.sendBodyWithCorrectTransferAndEncoding(NanoHTTPD.java:1583) at fi.iki.elonen.NanoHTTPD$Response.send(NanoHTTPD.java:1550) at fi.iki.elonen.NanoHTTPD$HTTPSession.execute(NanoHTTPD.java:937) at fi.iki.elonen.NanoHTTPD$ClientHandler.run(NanoHTTPD.java:192) at java.lang.Thread.run(Thread.java:818) Caused by: android.system.ErrnoException: sendto failed: EPIPE (Broken pipe) at libcore.io.Posix.sendtoBytes(Native Method) at libcore.io.Posix.sendto(Posix.java:206) at libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:278) at libcore.io.IoBridge.sendto(IoBridge.java:579) at java.net.PlainSocketImpl.write(PlainSocketImpl.java:520)  at java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:43)  at java.net.PlainSocketImpl$PlainSocketOutputStream.write(PlainSocketImpl.java:272)  at fi.iki.elonen.NanoHTTPD$Response.sendBody(NanoHTTPD.java:1620)  at fi.iki.elonen.NanoHTTPD$Response.sendBodyWithCorrectEncoding(NanoHTTPD.java:1593)  at fi.iki.elonen.NanoHTTPD$Response.sendBodyWithCorrectTransferAndEncoding(NanoHTTPD.java:1583)  at fi.iki.elonen.NanoHTTPD$Response.send(NanoHTTPD.java:1550)  at fi.iki.elonen.NanoHTTPD$HTTPSession.execute(NanoHTTPD.java:937)  at fi.iki.elonen.NanoHTTPD$ClientHandler.run(NanoHTTPD.java:192)  at java.lang.Thread.run(Thread.java:818) 

@Liar1995
Copy link
Author

@jobwq 你有实际使用NanoHTTPD去播放一个正常的加密视频文件吗?

@likaci
Copy link
Owner

likaci commented Aug 16, 2017

@Liar1995
看起来像是读取文件权限造成的,你的视频文件是放在哪里的?如果是SD卡,有没有申请权限?
这个原始的项目你能跑起来吗?

@Liar1995
Copy link
Author

Liar1995 commented Aug 16, 2017

@likaci 感谢回复,项目可以运行,但是好像NanoHTTPD只适合去加载m3u8的ts切片,我把一个完整的视频文件读流以后就会报这个错误EPIPE (Broken pipe),在NanoHttpd Issues上 issues#392issues#232里有人回答了一些 但是我按照他们的方式也并没有解决:disappointed: 视频文件在SD卡,权限什么的肯定有,不会是这么低级的问题

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

3 participants