Skip to main content
Participant
Mar 30, 2010 9:49 PM UTC
Question

Recording Video to Flash Media Server

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 is closed to new replies. Start a new post to keep the conversation going.

    1 reply

    Adobe Employee
    Mar 31, 2010 1:19 PM UTC

    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

    Translate