Skip to main content
Participant
November 19, 2007
Question

Problems with FLV directories

  • November 19, 2007
  • 4 replies
  • 414 views
I am having some problems getting to the videos in my AppsDir. I have been searching the forums and documents for an answer, but no luck. Any help would be greatly appreciated!

In this file
C:\Program Files\Macromedia\Flash Media Server 2\conf\_defaultRoot_\_defaultVHost_\Vhost.xml
There is a line I modified:
<AppsDir>${VHOST.APPSDIR};E:\videos</AppsDir>
I just added the ";E:\videos" to the ${VHOST.APPSDIR} that was already there. ${VHOST.APPSDIR} applies to the first directory listed directly below

Picks up movies here
C:\Program Files\Macromedia\Flash Media Server 2\applications\Test1\streams\_definst_
and here
E:\videos\Test2\streams\_definst_
just fine

I can get to a movie called "C:\Program Files\Macromedia\Flash Media Server 2\applications\Test1\streams\_definst_\testrt.flv" like:
<track>
<title>Rob hill climbing - SAN</title>
<location>rtmp://127.0.0.1/Test1</location>
<identifier>testrt</identifier>
<meta rel="type">rtmp</meta>
</track>

and I can get to a movie called "E:\videos\Test2\streams\_definst_\testrt.flv":
<track>
<title>Rob hill climbing - SAN</title>
<location>rtmp://127.0.0.1/Test2</location>
<identifier>testrt</identifier>
<meta rel="type">rtmp</meta>
</track>

These both work just fine, however here is how my e:\videos directory looks:

e:\videos\0212\VidArchive\JOESCHMOE\02\12\07
which is translated
e:\videos\[2 digit YEAR][2 digit MONTH]\VidArchive\[AUTHOR]\[2 digit YEAR]\[2 digit MONTH]\[2 digit DAY]

This is an idea of what the directories look like, they are all different. The bottom line is how do you get rid of the "streams\_definst_\" Is there a way around it?
    This topic has been closed for replies.

    4 replies

    Inspiring
    December 20, 2007
    instead of connecting to your application using the default instance name (_definst_) try connecting using another instance name, that will get rid of the "_definst_ "part.

    for example if you use an instance name of instanceTest your connection string should look like this:

    rtmp://127.0.0.1/Test2/instanceTest

    And to access your streams they should be placed in:

    E:\videos\Test2\streams\instanceTest\

    Now, if you wish to set up a streams directory straight to E:\videos you have to go to C:/../macromedia/fms/conf/_defaultRoot_/_defaultVHost_

    Open the Vhost.xml file and look for the <VirtualDirectory> section. In here you can add virtual directories, as much as you like. To add a virtual directory add tags like the following inside the VirtualDirectory section.

    <Streams>streamsDir;E:\videos</Streams>

    Now, place your videos in E:\videos. Now you can access them from your flash client like this:

    nc = new NetConnection();
    nc.connect("rtmp://127.0.0.1/Test2/instanceTest");
    ns=new NetStream(nc);
    ns.play("streamsDir\VIDEO"); //to play VIDEO.flv

    The code above is not tested but that basically it. Note that each virtual dir required an id, in this case I used "streamsDir".

    hope this helps


    Participant
    December 11, 2007
    Resource for FMS2 is patchy at best! I'll give you a heads-up if I find anything out.
    Participant
    December 11, 2007
    Did you ever get a resolution on this mate?
    Participant
    December 11, 2007
    Nope, still waiting!
    Participant
    November 26, 2007
    Bump... No one can help here?