Skip to main content
Apr 29, 2010 5:34 PM UTC
Question

Subdirectories for F4V files

For the vod application folder, we want to stream FLV and F4V files.  This works OK when all the files are in that directory.  But I have content that could embed an F4V file with the same name that reference two different videos with the same name.

Content A - Intro.F4V

Content B - Intro.F4V

These F4V files I create a subdirectory under the vod and then that path is referenced in the content.

For F4V files, the files will not stream.  Is there any way around this?  I know naming the files uniquely is a possibility but my application doesn't maintain the content file names, so we would have to kludge in an additionally lookup and update the content files (SWFs) themselves.  They are all in this relative folder tree, so for local playing on a PC it works fine.  (PC doesn't stream)

I know I can add streaming folders, but I don't want to go through each folder, otherwise the wrong file might be played.

Any suggestions from the experts?

Thanks,

Jon

    This topic is closed to new replies. Start a new post to keep the conversation going.

    5 replies

    Apr 29, 2010 6:28 PM UTC

    Hi Jon,

    The structure of vod app may look like this for you :

         vod

              |_ media

                        |_ a

                             |_Intro.f4v

                        |_ b

                              |_Intro.f4v

    To play the content from subdirectory a you can use: ns.play("mp4:a/Intro.f4v",0,-1).

    Similarly to play from the directory b: ns.play("mp4:b/Intro.f4v",0,-1).

    where, ns is a NetStream object.

    Is this what you were looking for?

    Thanks

    Mamata

    Translate
    Apr 29, 2010 7:18 PM UTC

    Yes, very helpful.

    This was the key:

    b: ns.play("mp4:b/Intro.f4v",0,-1).

    we were doing:

    b: ns.play("b/mp4:Intro.f4v",0,-1).

    We had our syntax incorrect.

    Thank you for your help.

    Translate
    weihua30
    Participating Frequently
    Apr 30, 2010 1:23 AM UTC

    I think Adobe should clarify whether this is a syntax error or a bug.  Other flash server does not has this kind of issue.

    Translate