HTML 5 streaming webcam video?

白昼怎懂夜的黑 提交于 2019-12-17 18:55:55

问题


Is it currently possible to create a flash free live webcam chat with HTML5? If so, how can I go about doing this?


回答1:


no

It is in the html5 draft

http://www.whatwg.org/specs/web-apps/current-work/complete/video-conferencing-and-peer-to-peer-communication.html#obtaining-local-multimedia-content

here is a much deeper conversion about this issue

What's the status of the HTML 5 <video> tag and webcam integration?

and here is a solution that works using flash

http://code.google.com/p/jpegcam/




回答2:


This is now possible in Chrome and Opera: filtering a webcam using getUserMedia and HTML5 canvas and will also soon be in Firefox (getUserMedia is currently in Firefox Nightly).




回答3:


Purely with HTML5, it's just not going to happen right now.

That said, you could theoretically do it without a flash bridge, but there'd be some requirements. As it is, there are some command-line utilities for Mac OS that capture images from the iSight camera and upload them to a web server. Grabbing the images, and optionally sound, you could redraw to a canvas element a few times a second for a low-grade camera. I won't begin to guess about pushing audio. Use an AJAX stream to maintain the connection, and continuously push the new images to the canvas as they're uploaded.

The real question becomes this: Is it worth it? According to Adobe1, you might as well use a flash bridge. Unless, of course, you're intending iOS compatibility, which is a whole other ballgame on it's own.




回答4:


Pure HTML5 isn't quite there. Until then you can check out a few services that make this process much easier to deal with than setting up Flash Media Servers:

http://cameratag.com

http://framey.com

http://framebase.com



来源:https://stackoverflow.com/questions/6976079/html-5-streaming-webcam-video

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!