Cannot get multiple videos playing at once.

Dec 5, 2012 at 7:01pm

Cannot get multiple videos playing at once.

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.

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

– Pasted Max Patch, click to expand. –
#65521
Dec 5, 2012 at 9:02pm

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.

#236043

You must be logged in to reply to this topic.