Directory Scanner for Playing Multiple Movies Back to Back

ctan's picture

Hey all, I'm just trying to figure out how to sort the directory scanner structure output for use with the Move Loader.

Maybe I am going about it wrong. What I want is the ability to have a folder full of movies. Have Quartz look in the folder and display the videos (either in order or randomly) one after another.

What I have now is the Directory Scanner. But that makes a structure with a sub-structure. I'm having a hard time getting the url's out of the sub-structure.

I've tried the Structure Index Member and Structure Key Member, but they will only return one of the substructures, not the urls from inside of it.

I've also tried the Structure Sort, but can't figure out what Sorting Descripter to use to get the "url" key out of the sub-structure.

Any help is appreciated.

Chris

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

psonice's picture
Ignorance...

...is not a good starting point, especially as i've not use the directory scanner. But it sounds like nested structures, just like the RSS reader output, in which case can you not use index member to get the structure for a file, then key member on that to get the path? Perhaps with more steps, depending on the structure of course.

cwright's picture
two-step

[Like your name, btw ;)]

To pull data out of a nested structure, you'll need to use 2 structure member/structure index patches.

Your compo will look something like this:

The first Structure Index patch gets the substructure, the second pulls out the relevant data from that substructure.

PreviewAttachmentSize
nestedStructure.jpg
nestedStructure.jpg138.4 KB

ctan's picture
Almost there ...

Thanks. The double structure index member works to get it out. I played around some more and ended up using a cross between the two. By grabbing the "Get The Article" Macro from the RSS example and a single structure index member I am able to pull out the movies as the previous one ends. The only problem I have now is that the starting point is not restarted when a new movie plays.

For example.

I have 5 clips. Each is 20 seconds longer then the previous (not really but for example sake I'm saying so). If they played in order from shortest to longest, each would only play the last twenty seconds of the clip. 0-0:20 (end), then the next clip from O:20 to O:40 (end) then 0:40 to 1:00 (end), etc.

The only way I can see getting around this is to have the movie position reset to 0 when a movie ends. Anybody have any ideas on how to do that?

PreviewAttachmentSize
Picture 2.png
Picture 2.png106.85 KB

cwright's picture
stopwatch

You could use the stopwatch and soem logic/javascript to control the time. As soon as the stopwatch time is equal to or greater than the current movie's play time, reset the stop watch.

You'll want to right-click on the Movie Loader patch, and set its timemode to be External so you can control its time like that.