Help video positions and interaction

Jul 6, 2012 at 6:06pm

Help video positions and interaction

So, I have 3 videos running on a window. Can somebody help me with the coordinates of the mouse? I want that clicking on video it loads another movie (maybe and stop with the other ones. Then, when the movie reaches its end it turns again to the screen of the 3 movies. Is it possible?
Here is the patch.

  1. xy.maxpat
Jul 6, 2012 at 9:51pm

Any help?

Jul 8, 2012 at 2:51pm


Jul 8, 2012 at 6:39pm

From the right outlet of jit.window if you connect a message object (right inlet) you will see the mouse coordinates and if it is clicked (0-1). You should then extract the coordinates XY and do some if statements to locate specific bounds. When it is inside these bounds and it is also clicked, you can send a command for the movie list to change. Have a look at the drop file object and the umenu.

Jul 8, 2012 at 11:53pm

can you give me an example if you don’t mind?

Jul 9, 2012 at 8:16pm

you will probably have an easier time with this kind of thing by switching to opengl.
you can use the to display the movies and the to indicate when you click on them.

below is a patch that should get you started:

– Pasted Max Patch, click to expand. –
Jul 11, 2012 at 11:19pm

Thank you. I already can see the reading of the videos ;)

Aug 10, 2012 at 2:53pm

I developed my patch and I have 10 videos playing on a single window. I ant to interact with them, when clicking in one of them it loads a different movie. I mean, each movie corresponds to another movie (that will load when clicking with the mouse). Is it possible?

  1. Untitled4.maxpat

You must be logged in to reply to this topic.