Jitter Multiple Video Help

craig.deskins's icon

Hey I am running into a little obstacle with my patch. I want to be able to choose 3 different video files, and be able to switch between the three freely. However, after I read a movie file I cant figure out how to store the file name so that i can revert back to it without having to read the file again. If I try reading a new movie file with a different jit.movie object, the video replaces the old one. I want them all to be stored in memory so I can switch between like a toggle after they are read. Any advice would be greatly appreciated!

newdendrite's icon

Create three movie players, read a different file into each one at startup, use "stop" and "start" messages to control each player.

Jake DeNiro's icon

Hey I've been going through all the basic tutorials: you need to look at Max Basic #12: Movie Playback, specially the switch message...

"Switching between several movies

Another way that we can control the imovie output is by loading and switching between several movies. Unlike many other media-related objects, imovie can load several different movie files, then can use the switch message to jump among the files to determine which one is active."

craig.deskins's icon

Thanks for the replies!

@newdendrite - The goal of the patch is to be able to choose the movies post-startup, and then have a min-max of 1-3 videos that are watchable.

@Jake Deniro - That is essentially the function I am looking to have. However, it seems that you have to already the videos filename and have it read in the patch.

I guess the problem is actually that I once I "Read" a file into a patch manually, how can I extract the filename information? Here is the basic object logic, however it doesnt work. Example: "Read" message with an output that goes to a $1 message to save the filename chosen. Any ideas?

newdendrite's icon

Ahh. OK, I think I see what you are trying to do.

The right outlet of the [jit.qt.movie] object outputs the filename you used in the read command (plus a digit). You could extract it with a [route read] object and send it to a coll.