FMS - capture webcam stream and store
Hi,
Does anyone know anything about recording webcam streams and storing them using FMS? I'm looking into capturing the stream as an FLV that can then be stored on the server so it can be played back.
If anyone has any ideas on hwo to go about this or knows of any good reading material, let me know.
Thanks,
Dave
Recording Video with AIR/Apollo
If anyone is interested here's a way to record a webcam stream using AIR/Apollo sans FMS...
http://tdotblog.info/?q=node/1
Here is your Record Actionscript Code for Webcam Video & Audio Feeds
SCRIPT 1:
var sUser = fuser;
var connection = connection;
ncConnection = new NetConnection();
ncConnection.connect((connection + sUser), sUser, nCpm, "record");
ncConnection["onStatus"] = function (info){
if(info.code == "NetConnection.Connect.Success"){
txConnect.text = "Coonection established";
gotoAndStop(2);
} else if(info.code == "NetConnection.Connect.Closed"){
gotoAndStop(1);
txConnect.text += "\r>>The connection was closed successfully";
} else if(info.code == "NetConnection.Call.Failed"){
gotoAndStop(1);
txConnect.text += "\r>>The NetConnection.call method was not able to invoke the server-side method or command.";
txConnect.text += ("\r" + info.description);
} else if(info.code == "NetConnection.Connect.Failed"){
gotoAndStop(1);
txConnect.text += "\r>>The connection attempt failed.";
} else if(info.code == "NetConnection.Connect.InvalidApp"){
gotoAndStop(1);
txConnect.text += "\r>>The application name specified during the connection attempt was not found on the server.";
} else if(info.code == "NetConnection.Connect.Rejected"){
gotoAndStop(1);
txConnect.text += "\r>>The client does not have permission to connect to the application, or the application expected different parameters from those that were passed.";
} else if(info.code == "NetConnection.Connect.AppShutdown"){
gotoAndStop(1);
txConnect.text += "\r>>The application has been shut down (for example, if the application is out of memory resources and must shut down to prevent the server from crashing) or the server has shut down.";
} else if(info.code = "NetConnection.call.BadVersion"){
gotoAndStop(1);
txConnect.text += "\r>>The URI specified in the NetConnection.connect method did not specify \'rtmp\' as the protocol. \'rtmp\' must be specified when connecting to Flash Communication Server.";
}
}
stop();
SCRIPT 2:
nsVideo.publish((date_str + type), "record");
:)
Its not working. please help me sort out the error.
Quote:
Originally Posted by
silentweed
I've made a simple webcam record application for FMS .. u can check it out in my library
nothing gets recorded in it.. i am trying to make the same application but nothing is working for me.