Help video positions and interaction

    Jul 06 2012 | 6:06 pm
    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 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.

    • Jul 06 2012 | 9:51 pm
      Any help?
    • Jul 08 2012 | 2:51 pm
    • Jul 08 2012 | 6:39 pm
      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 08 2012 | 11:53 pm
      can you give me an example if you don't mind?
    • Jul 09 2012 | 8:16 pm
      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:
    • Jul 11 2012 | 11:19 pm
      Thank you. I already can see the reading of the videos ;)
    • Aug 10 2012 | 2:53 pm
      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?