Cannot get multiple videos playing at once.

lowenfas's icon

I am having many problems with this patch, I want to make it so every time somebody clicks on the screen a new movie starts playing near where they clicked. The movie is a very short animation and scaled down so many can fit on the screen. Every time someone clicks a new movie should play in that region BUT, every click clears the last movie so there cannot be more then one playing at the same time.

Max Patch
Copy patch and select New From Clipboard in Max.

I tried using glrenders but they did not work. I used mxform to scale down the video could it be that?

dtr's icon

There is only 1 jit.qt.movie object in your patch so there will only be 1 movie playing at any time. I think what you want is gonna be hard with the approach you're taking now. I'd do it in opengl (jit.gl.xxx objects) so that for every click a new jit.gl.videoplane with associated jit.qt.movie is placed. You 'll need to decide on the maximum number of videos beforehand though (perhaps you can have it entirely dynamic with javascript but I don't know much about that). Poly~ could hold a jit.qt.movie+jit.gl.videoplane pair in each voice for tidier management, although this might be getting a bit advanced.