Skip to main content
Participant
April 17, 2008
Question

Playing movies that reside in subfolders

  • April 17, 2008
  • 1 reply
  • 304 views
I have a dynamic directory structure that changes each time a new movie is added. For each movie that is uploaded, a new folder is created. I have set my VOD structure to go up to a certain point, and then I wanted to be able to hit any subfolders underneath that main folder. I am also using Jeroen Wijering's Flvplayer to ultimately play the videos and the SWFobject javascript to call them up. The Flashvar sequence that I am using is similar to:

s1.addVariable('file', 'rtmp://www.devserver.com/vod/english/20202');
s1.addVariable('id', 'mp4:20202.mov');

Can someone please tell me 1. Where should I put the application.xl and main.asc files? 2. How should I set up so that subfolders are part of the equation?

Thank you so much in advance for your help,

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

    1 reply

    Participant
    April 17, 2008
    The file varaible should alway point to the server only, the id part points to the subdirectory/file name part.

    Assuming you set VOD to point to the english directory and the file is in a 20202 directory with a name of 20202.mov
    s1.addVariable('file', 'rtmp://www.devserver.com/vod/english');
    s1.addVariable('id', 'mp4:20202/20202.mov');

    If you want to point to the directory above english then
    s1.addVariable('file', 'rtmp://www.devserver.com/vod');
    s1.addVariable('id', 'mp4:english/20202/20202.mov');