Switch between videos
Hello all, I am making my first patch, assistance gratefully received.
I am aiming for switching between these 12 videos, however only one is playing (from input note 12, Common_starling.mp4).
What is missing to enable the switch?

NB I changed the select range from 0 to 11.
Do I need to add multiple jit.windows?
Connect and send messages to the [jit.movie] object ;-)
Also use "read" (or "asyncread") instead of "switch".
That's worked! Thank you!
Now my MIDI messages are coming in pretty fast from the Midi sprout.
Is there a way to tell the video to finish playing, before reading a new video?
You can send "stop" message to the [jit.movie] to stop playing or "dispose" to, let's say "unload" video.
You may be also interested in @output_texture 1 attribute of the [jit.movie] - if your videos are using high resolution formats this attribute may positively affect frame rate and general performance of your patch.
Hi, thanks again...
I added @output_texture 1, but now the videos are not appearing or playing in the jit.window.
I should have been more clear: I would like each video to play until the end, and only when it is finished to start a new one. So I guess, either the note in would need to be paused until the video is finished, or a new object or message added which can tell the video to play to the end?
Thanks

Hello
Ok, there are several methods to build something you need. One of the simplest (in my opinion) solutions could be created around this mechanism (it's a patch copied to post with "copy compressed" Max feature. To use it: click it, click "copy to clipboard", open Max, go to File -> New From Clipboard):
Hello Yaniki,
That's worked perfectly! Many thanks again!
There is one extra thing I wish to include in the patch. I'd like an image (pdf, jpeg, it doesn't matter) to display at the same time as each video (there is a matching image for each video).
Should this new part of the patch be connected to the buttons coming from the notein and selected pitch, or to the loop part?

Thanks ;)
I have attempted to make the changes, but the images are not displaying in the jit.window...can you see where I need to change it?

The first thing I see is related to the "gate" object - connect messages containing images names to the second inlet of the "gate" ;-)
Whoopsie!
Have fixed that...but still no images :(
The pngs are not numbered 1-12 in the library: does that matter?
If you have an image named "myimage.png" put string "myimage.png" into the message box - no additional characters.
Changed it...still no .pngs coming up.
I checked the size of the images are all within the parameters in the jit.movie.
I got it! prepend read.
Thanks again for all your help Yaniki :)