Skip to main content
Participant
November 26, 2011
Question

How to store the live stream?

  • November 26, 2011
  • 1 reply
  • 954 views

Hi All,

I have installed fms4 in my linux machine.

Please help me how to store the live stream?

Thanks,

Hariharan V.

    This topic has been closed for replies.

    1 reply

    Adobe Employee
    November 29, 2011

    What you are saying is basically record you live streams right. Before you plan to record - please give write permission to your application folder. You wont be able to record using installed application like "live" and "vod" - so you'll have to create you own custom applications. If you are using Flash Application - you can use record method of publishing from Flash client itself or if you are using FMLE - you'll have to use server-side record functionality. I'll explain second option here:

    1. Create folder called "test" in your applications folder ( i.e. /opt/adobe/fms/applications )

    2. Create file named main.asc inside "test" folder

    3. Put below text inside main.asc

    application.onPublish = function(mc,ms){

         ms.record();

    }

    application.onUnpublish = function(mc,ms){

         ms.record(false);

    }

    4. Once you are done with that - give proper permission - just for trial you can give full permissions to your whole applications folder i.e. navigate to /opt/adobe/fms/applications and run chmod -R 777 . (please change it afterwards and give only needed permissions)

    5. Now publish live stream to "test" using FMLE and see if recording is created in "test/streams/_definst_/" folder

    Participating Frequently
    November 29, 2011

    SE_0208,

    Thank you, this post has been very helpful for my topic (here: http://forums.adobe.com/thread/929225), but I still cannot play the video live; when I play the stream with the same name I publish with, it seems FMS reads from the file, rather than the live feed. Is there any way to play the live feed, rather than the recorded file when playing the stream? Perhaps there's a way to choose a different name for the recorded file? (or would that not make a difference?)

    Actually, forget all that, I believe my issues are resulting from using the developer preview of Air 3.2. It seems they broke live video playback in the dev test builds, so everything should be good when the next version of Air is released.

    Further edit: Yes I can confirm this is working properly on Air 3.1, I can stream and record at the same time without issues. Thank you so much SE_0208.