开发者

stream video with eventmachine?

开发者 https://www.devze.com 2023-04-10 09:15 出处:网络
It seems to me that EM::FileStreamer should be usable out of the box, but I tried it with the <video> tag and with an embedded Quic开发者_JS百科ktime plugin, but neither one would actually show

It seems to me that EM::FileStreamer should be usable out of the box, but I tried it with the <video> tag and with an embedded Quic开发者_JS百科ktime plugin, but neither one would actually show the video.

I've connected to my EM server with telnet and found that it does indeed stream my video file. I'm at a loss as to why it's not buffering and playing in my browser. Anyone have any hints for me?


That should work, however the video must be encoded properly to stream in that fashion. I am assuming your using an mp4? If so, have you run qt-faststart on the file?

Here's an article with a bit of info.

http://www.stoimen.com/blog/2010/11/12/how-to-make-mp4-progressive-with-qt-faststart/

I also have my sample video encoding app on github, which does this automatically for you when you upload videos.

https://github.com/zquestz/asset-manager

Just make sure qt-faststart is in your PATH. Once the index information is at the beginning of the file, thing should work as expected.

Videos encoded with libtheora should work out of the box for supported browsers.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号