Skip to main content
April 29, 2010
Question

Subdirectories for F4V files

  • April 29, 2010
  • 1 reply
  • 545 views

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 has been closed for replies.

    1 reply

    April 29, 2010

    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

    April 29, 2010

    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.

    weihua30
    Participating Frequently
    April 30, 2010

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