Recording video in flash using FMS
Hello all,
I am developing a flash program which will take video feedback. I have installed FMS 4 (development server) on my machine and trying to record a video using a flash file. Following is the action script in my flash file.
var RTMP:String = "rtmp://localhost/live";
var camLive:Camera = Camera.get();
oVideo1.attachVideo(camLive);
var nc:NetConnection = new NetConnection()
nc.connect(RTMP);
var ns:NetStream = new NetStream(nc);
btnRecord.onRelease = function():Void{
ns.attachVideo(camLive);
ns.publish("demo","record");
btnPlay.enabled = false;
mcRecordInfo._visible = true;
nTimer = setInterval(stopRecording, 10000);
}
When i run this program i see my live webcam in SWF file but when i click recording nothing happens. As per following code seems like it will save demo.flv file. but i am not sure where?
ns.publish("demo","record");
I checked FMS.ini file and saw my D:\Program Files\Adobe\Flash Media Server 4\applications\live
but still can't see demo.flv
Please help am i missing something !!!!! Your help would be greatly appreciated.
