HTML 5 streaming webcam video?

2019-01-18 05:26发布

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

4条回答
爷、活的狠高调
2楼-- · 2019-01-18 05:56

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

查看更多
淡お忘
3楼-- · 2019-01-18 06:04

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).

查看更多
仙女界的扛把子
4楼-- · 2019-01-18 06:09

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.

查看更多
登录 后发表回答