jQuery和现场摄像头视频流 [英] jQuery and live webcam video streaming
问题描述
我正在尝试构建应用程序,人们可以拥有自己的房间并从网络摄像头流式传输视频,以便其他人可以看到它们。我正在尝试使用red5,但我无法将其与php集成,所以我现在正在尝试使用jquery。到目前为止,我已经尝试了这三个插件:
I'm trying to build application where people can have their own rooms and stream video from webcam, so other people can see them. I was trying approach with red5, but I can't integrate it with php so I'm trying with jquery now. So far I've tried those three plugins:
-
http://www.scriptcam.com/docs.cfm 它与我想要的最接近(它有一对多的视频聊天)但你只能拥有5个观众。
http://www.scriptcam.com/docs.cfm and it's the closest to what I want ( it has one-to-many videochat ) but You can only have 5 viewers.
http:// jqueryvideo-player。 com 有人说它可以选择从网络摄像头流式传输视频,但我没有在文档上找到它。
http://jqueryvideo-player.com someone said that it has an option to stream a video from webcam but I haven't found that on docs.
https://github.com/infusion/jQuery-webcam 但我找不到允许很多人的方法查看我的网络摄像头视图。
https://github.com/infusion/jQuery-webcam but I can't find a way to allow many people to see my webcam view.
我知道还有更多,但它们都不允许广播。有没有办法用jquery做这个?
and I know there's a lot more, but neither of them allow broadcasting. Is there any way to do this with jquery?
编辑:我也尝试用html5( http://www.html5rocks.com/en/tutorials/getusermedia/intro/ 例如)但我总是得到一个错误getUserMedia()您的浏览器不支持。我已经在Opera 18.0和Chrome 32.0.1700.102 m上试过了,所以我不知道为什么它不起作用。
I was also trying with html5 ( http://www.html5rocks.com/en/tutorials/getusermedia/intro/ for example ) but I always get an error that "getUserMedia() is not supported on Your browser". I've tried that on Opera 18.0 and on Chrome 32.0.1700.102 m so I don't know why it doesn't work.
推荐答案
使用getUserMedia()API是一个很好的原生替代方案,假设您要定位的浏览器支持它。请看这里: http://caniuse.com/#feat=stream 。您可能还想对WebRTC进行一些思考。它仍在开发中,但这项技术似乎引起了很多关注。发布代码段也可以更好地帮助您理解您的问题。
Using the getUserMedia() API is a good native alternative assuming the browsers you will be targeting support it. Look here: http://caniuse.com/#feat=stream. You might also want to give some thought into WebRTC. Its still being developed, but this technology seems to be catching a lot of attention. Posting code snippets will also better help understand your question.
这篇关于jQuery和现场摄像头视频流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!