Help video positions and interaction

Jul 6, 2012 at 6:06pm

Help video positions and interaction

Hi,
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 dishes.mov it loads another movie (maybe dvducks.mov) 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.

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

Any help?

#131482
Jul 8, 2012 at 2:51pm

anyone?

#131483
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.

#131484
Jul 8, 2012 at 11:53pm

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

#131485
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 jit.gl.videoplane to display the movies and the jit.gl.picker to indicate when you click on them.

below is a patch that should get you started:

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

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

#131487
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?

Attachments:
  1. Untitled4.maxpat
#131488

You must be logged in to reply to this topic.