Skip to main content
Participant
March 30, 2010
Question

Recording Video to Flash Media Server

  • March 30, 2010
  • 1 reply
  • 2270 views

Hi everyone, I've been searching high and low for a guide on how to do this and I can't find anything. Hopefully someone here will be able to help.

Here's what i'm looking to do...  I want to have a website where users can record short video clips (using a webcam) and then have those videos saved on the FMS for viewing later.  Can anyone point me in the right direction? I've seen a lot about streaming video, but I actually want to save the video.

Thanks!

    This topic has been closed for replies.

    1 reply

    Adobe Employee
    March 31, 2010

    Hi,

    You can use any publisher to publish like FMLE and publish the streams to the application in applications folder suppose application name is sampleApp then create a folder in applications folder of FMS root directory and then keep the below mains.asc file which does the recording of published streams to the sampleApp application.

    //main.asc
    application.onConnect=function(clientObj)

    return true;
    };


    application.onPublish = function(clientObj,streamObj){

      trace("in application publish");

      streamObj.record("record");

    }

    application.onUnpublish = function(clientObj,streamObj){

    trace("on unpublish");

    streamObj.record(false);

    }

    I think this should solve your problem.

    Regards,

    Amit