This content has been marked as final. Show 2 replies
I'm looking into the same thing. I found this last night. The RTMP stuff seems like a good starting point.
What you need is grab video/sound form camera/mic, publish it on FMS and let the other clients play it. In a few steps:
// get camera and mic
var cam:Camera = Camera.getCamera(); // get default camera
var mic:Microphone = Microphone.getMicrophone(); // get default mic
// if you have VideoDisplay, for monitoring
// create new RTMP connection to FMS/your app
var nc:NetConnection = new NetConnection();
// new stream should be create *after* nc has connected, not before
// so this is executed after the below nc.connect() succeeds
var ns:NetStream = new NetStream();
ns.publish("streamname", "live"); // or "record" if you want to live+rec
// connect to default instance of app 'appname' on your FMS
If you're using Flex2 and FMS2 (the latest FMS is 3), you might need to
cuange the connection encoding to AMF0 (which is what FMS2 uses) in order for this to work.
Hope this helps; I've written it from my head so it probably has mistakes, but it's the general workflow; the docs in the language reference for specific functions mentioned here will also help.