Skip to main content
Participant
June 25, 2008
Question

files in subdirectories won't play?

  • June 25, 2008
  • 2 replies
  • 474 views
We have FMS3 and I needed to serve flv's from a different directory than the default vod directory. First I created a new application (new_app) and set the source directory to be the directory I need it to be, a directory called "bcflash" inside my website. When I put an flv file into the bcflash folder and attempt to play it with the vodtest.swf sample file, I get a connection error. If I copy the file to the main vod/media folder it plays fine. After I have played it from the vod/media folder, it plays fine from the bcflash folder.

I thought maybe the source directory needed to be inside the new_app directory as with vod/media, so I changed the new_app source directory to be inside the new_app directory, which is under FMS3/applications. So now, when I put an flv file into the source directory it plays the first time. Great. But...

I need to create subdirectories inside the new_app/media folder to organize the flv files. This SEEMS to work in the vod directory, but seems NOT to work in the new_app directory. To clarify, if I create a folder "test" inside vod/media and place a flv file in the test folder, it plays the first time. If I create a folder "test" inside the new_app/media folder and place a flv in the test folder, it will not play the first time. If I place a copy of it inside the new_app/media folder and play it, then move it to the new_app/media/test folder, it plays.

So my questions:

First, is it possible to have a source directory for my media that is not inside the FMS3/applications directory? I have the new_app directory in there, but had the media folder for it pointed elsewhere and it didn't seem to work correctly.

Secondly, can I do subdirectories? How can I get the media to play from the subdirectory without playing it first from the root directory?

Am I misinterpreting something? Have I misunderstood something? Is this a limitation of FMS3 that would be resolved by upgrading to FMIS3? Thanks in advance.
    This topic is closed to new replies. Start a new post to keep the conversation going.

    2 replies

    June 26, 2008
    it is fairly possible, if you are correct with virtual stream directories:
    http://livedocs.adobe.com/flashmediaserver/3.0/hpdocs/help.html?content=00000038.html#397983


    for using multiple level of sub directories, you need to use fully qualified rrtmp URL with correct syntex

    for playing vod/media/sub1/sub2/video.flv
    use url (for flv playback component)
    rtmp://server/vod/_definst_/flv:vod/sub1/sub2/video

    Participant
    June 26, 2008
    quote:

    Originally posted by: fmslove
    it is fairly possible, if you are correct with virtual stream directories:
    http://livedocs.adobe.com/flashmediaserver/3.0/hpdocs/help.html?content=00000038.html#397983


    Yes, I followed that exactly, changing vod2 to bcflash, but the results were as I described above. In step 5, I gave it the path to my website directory. I couldn't play any file for the FIRST time from the bcflash directory, but if I played it from the vod app first, it would then play from the bcflash app. After seeing that, I changed the app config so that the source directory was inside the app directory like the vod app, which is how it stands at this point.

    quote:

    for using multiple level of sub directories, you need to use fully qualified rrtmp URL with correct syntex

    for playing vod/media/sub1/sub2/video.flv
    use url (for flv playback component)
    rtmp://server/vod/_definst_/flv:vod/sub1/sub2/video




    My problem is that I am getting inconsistent results in my tests. Attempting to test the problem again here is what I did and my results:

    Starting with bcflash/media as the source dir and 3 test flv's. I created bcflash/media/sub1 folder. I copied test1.flv into bcflash/media/sub1.

    I attempted to access it with rtmp://my.domain.com/bcflash/sub1/test.flv and got a CONNECTION ERROR.

    I copied test2.flv (different file) to bcflash/media (the root) and attempted to access it with rtmp://my.domain.com/bcflash/test2.flv and test2.flv played.

    I then went back ant tried test1 again with the SAME URL as before and it played (remember, it is a different file)?

    I then created bcflash/media/sub1/sub2 directory and copied test3.flv (again, a unique file, different from the other 2 tests), attempted to access it with rtmp://my.domain.com/bcflash/sub1/sub2/test3.flv and it played.

    This is the type of inconsistent results I have seen throughout my testing, and is why I am so confused. What am I doing wrong? Why will they sometimes play and sometimes not with the SAME URL?