Skip to main content
Participating Frequently
February 22, 2010
Question

Allow direct flv download?

  • February 22, 2010
  • 1 reply
  • 1178 views

Hello,

I'm using FMS 3.5 to record streams to the server as flv files, and would like the ability to directly download those generated flv files. Assuming these files are sitting in my applications/recorder/streams/_definst_ directory, how can I open up this directory to allow direct download via a url? Something like http://<ip address>/applications/recorder/streams/myfile.flv. I'm guessing this is just something that I need to put into one of the configuration files, but I'm having a bit of trouble figuring this one out. Can anyone help me figure out how to open up my server so that this type of direct downloading is supported?

Thanks.

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    February 23, 2010

    You can place them in webroot folder and they should be accessible via http. Please read readme file under <installedDirectory>/webroot/live_recorded.

    To start with you can just go ahead and place the recorded flv inside <installedDirectory>/webroot/vod example C:\Program Files\Adobe\Flash Media Server 3.5\webroot\vod.

    Let me know if this helps.

    (I am assuming you have selected Apache installation when installing Flash Media Server 3.5)

    Please let me know if you need any more help

    jimt899Author
    Participating Frequently
    February 23, 2010

    I am running the default Apache bundled with FMS. In the fms.conf file, I am able to change the LIVE_DIR variable to reflect the location of the directory whose contents I would like to expose:

    LIVE_DIR = <FMS_Installation_Dir>/applications/myapp/streams/_definst_

    Should this make the files at:

    http://<ip address>/applications/myapp/streams/_definst_

    accessible?  It doesn't appear that I'm able to see these files.

    Participating Frequently
    February 23, 2010

    I don't think it will work.

    I would suggest place all those files under directory mentioned for VOD_COMMON_DIR in fms.ini. Now if you want to modify it to different path like yours , i think you will have to modify your document root accordingly in httpd.conf of bundled Apache.

    You can still do with settings you have made but like above you need to change Apache settings , however i would not recommend to expose your streams folder directly. Better to place those files under LIVE_DIR or VOD_COMMON_DIR.