Monday, March 17, 2008
Flash Media Server 3: serverside recording of Flash Media Encoder Live-Streams made easy
If you use Flash Media Encoder 2 to publish your Livestreams to a Flash Media Server 3 it is only possible to record that Livestream on the clientside by default.
If you want to record that Livestream on the serverside you need to add the following serverside ActionScript code to you main.asc file.
// Enable FME Recording on FMS in 3 steps
Client.prototype.FCPublish = function(streamName)
{
// streamName is the name of the stream entered in FME
// 1) Get the stream s = Stream.get(streamName);
// 2) Record it s.record();
// 3) tell FME that everything is OK
this.call("onFCPublish", null, {code:"NetStream.Publish.Start", description: streamName});
}
Comments
Hi,
Nice trick ! Can you tell where the file is stored, ant is there any way to change the location ? chhers, Xris
Posted By Xris / Posted At 5/30/08 12:03 PM
Hi, that file is stored in the applications media directory and you only can change that be redefining that directory in the application.xml.
Posted By Sven / Posted At 5/30/08 2:24 PM