Skip to main content
December 2, 2009
Question

Anything i record goes to /applications/live WHY?

  • December 2, 2009
  • 1 reply
  • 305 views

Everywhere i look, there are tutorials and forum threads telling that upon a:

ns.publish("hello", "record");

when connected to: "rtmp://127.0.0.1/CamsRecorder"

at the client side, i whould get a file named "hello.flv" at ....../applications/CamsRecorder/streams/_definst_/

But that is not the case. The file appears at ......./applications/live

WHY?

after a lot of tinkering with all the configuration files, i got to (fms.ini):

LIVE_DIR = C:\Archivos de programa\Adobe\Flash Media Server 3.5\applications\live

Changing that i am able to change where the files will be saved, but this is not how it is supposed to behave.

What is going on?

Thanks,

Alejandro

    This topic has been closed for replies.

    1 reply

    December 2, 2009

    Alejandro,

    What do you have specified in your Vhost.xml in the <VirtualDirectory> area? Did you setup any <Streams></Streams>?

    If you look at the comments in the <VirtualDirectory> area, you will see the following:

    <!-- Specifies virtual directory mapping for recorded streams.   -->

    So what I do is setup a variable in my fms.ini, with syntax something like:

                  
    RECORDING.DIR = logicalename;/physical/path/to/recording/folder

    Which then means I can have something like this set in my Vhost.xml:

    <VirtualDirectory>
                    <Streams>${RECORDING.DIR}</Streams>
    </VirtualDirectory>


    Depending on how you need (or not) to reference this folder in other ways, you may or may not need to setup RECORDING.DIR as a FileObject in Application.xml also. Something like:

    <FileObject>
                    <VirtualDirectory>${RECORDING.DIR}</VirtualDirectory>
    </FileObject>

    I hope this helps you!

    Best regards
    Rick Tait
    rickt@stickam.com
    December 3, 2009

    That was exactly the problem.

    I had started my project by copying the "live" application and didn't expect it to have such setting hardcoded.

    Thank you a lot