Skip to main content
Participating Frequently
July 28, 2011
Answered

Streaming files with different folders

  • July 28, 2011
  • 2 replies
  • 627 views

Hi

i am new to FMS4 and i am having a problem playing some files with different folders.

i have different folders in C:\media3\feeds

in that directory i have folder "1", "2" and "3"

other words C:\media3\feeds\1

C:\media3\feeds\2

C:\media3\feeds\3

in config folder i changed fms.ini

VOD_DIR = C:\media3\feeds\

and

VOD_COMMON_DIR = C:\media3\feeds\

i only got the f4v files to work in C:\media3\feeds\ which link is rtmp://localhost/vod/mp4:testfile.f4v

so i tired to have some folders in C:\media3\feeds\ like mention above

i tried to put <Streams>/;<C:\media3\feeds\1</Streams> in Applications.xml file in the C:\Program Files\Adobe\Flash Media Server 4\applications\vod

and used rtmp://localhost/vod/1/mp4:testfile.f4v

here is piece of the App file

<Application>

<StreamManager>

<VirtualDirectory>

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

<Streams>/;${VOD_COMMON_DIR}</Streams>

<Streams>/;${VOD_DIR}</Streams>

<Streams>/;<C:\media3\feeds\1</Streams>

<Streams>/;<C:\media3\feeds\2</Streams>

</VirtualDirectory>

nothing worked

can some one help me with this??

    This topic has been closed for replies.
    Correct answer SE_0208

    If you are using

    VOD_DIR = C:\media3\feeds\ or VOD_COMMON_DIR = C:\media3\feeds\

    and having files in folder "1" which is under "C:\media3\feeds\"

    then you URI should be rtmp://localhost/vod/mp4:1/testfile.f4v (where testfile.f4v is present under C:\media3\feeds\1)

    If you are using

    <Streams>/;C:\media3\feeds\1</Streams>

    <Streams>/;C:\media3\feeds\2</Streams>


    Then your URI should be rtmp://localhost/vod/mp4:testfile.f4v  (where testfile.f4v is present under C:\media3\feeds\1 or C:\media3\feeds\2)

    Also please note in your configuration which you have specified

    <Streams>/;<C:\media3\feeds\1</Streams>

    <Streams>/;<C:\media3\feeds\2</Streams>

    please remove "<" in "<C:\media3\feeds\1" and "<C:\media3\feeds\2"

    2 replies

    SE_0208Correct answer
    Participating Frequently
    August 1, 2011

    If you are using

    VOD_DIR = C:\media3\feeds\ or VOD_COMMON_DIR = C:\media3\feeds\

    and having files in folder "1" which is under "C:\media3\feeds\"

    then you URI should be rtmp://localhost/vod/mp4:1/testfile.f4v (where testfile.f4v is present under C:\media3\feeds\1)

    If you are using

    <Streams>/;C:\media3\feeds\1</Streams>

    <Streams>/;C:\media3\feeds\2</Streams>


    Then your URI should be rtmp://localhost/vod/mp4:testfile.f4v  (where testfile.f4v is present under C:\media3\feeds\1 or C:\media3\feeds\2)

    Also please note in your configuration which you have specified

    <Streams>/;<C:\media3\feeds\1</Streams>

    <Streams>/;<C:\media3\feeds\2</Streams>

    please remove "<" in "<C:\media3\feeds\1" and "<C:\media3\feeds\2"

    feedstaffAuthor
    Participating Frequently
    August 2, 2011

    Thank you very much

    this works like a charm

    calmchessplayer
    Inspiring
    August 1, 2011

    Well u may want to try something other than number 1 as a directory name sometimes causes a conflict however I've used a 1 within an applications config folder(the one in applications folder containing main.asc)