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.
Any help?
anyone?
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.
can you give me an example if you don't mind?
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:
Thank you. I already can see the reading of the videos ;)
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?