building live stream video? chat video?

hellomello picture hellomello · Feb 8, 2012 · Viewed 8.5k times · Source

I was wondering how live streaming or chat video works? I know a bit about PHP and I've been learning ajax and jquery. I was wondering if it is possible to build such a system using PHP? Or maybe HTML5? I'm not too familiar with HTML5 but if that could be a possibility, I would definitely learn it.

Can someone help me get my feet going?

Thanks!

Answer

Willem Mulder picture Willem Mulder · Feb 8, 2012

For HTML5, you're looking for WebRTC. See http://www.webrtc.org/. This spec enables live streaming (video/audio) from within a browser.

Still, you need a backend to process the streams and connect people together. This is not very well suited for PHP, and I'd rather use Node.js, a server that enables very lightweight 'two-way connections' to clients. See http://nodejs.org/.