jit.qt.movie behaviour

karl krach's icon

tiny question:
i just realized that films shown with jit.qt.movie, play the loaded movie in the background, regardlessly if banged (and shown in some window) or not: when i stop banging a jit.qt.movie and then later start banging it again, it does not pick up on the last shown frame but where it would be if it would have been shown continously...
how would i prevent this? that is, the movie should only advance a frame frame when explicitely banged...?
thanks!!
k

Andro's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Here you go.

ctrlzjones's icon

You can control the playback with a [frame] message getting its value from a counter that can be turned on/off to pause the movie.

The clumsiness for the fps to ms for the metro reflects my mathematical deficits (smile but don't laugh), but the idea should become transparent ...

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

--]]

____________________________
edit:
ups, there has been someone faster;
I keep it up anyway;
in the above example you see more parameters to control the playback timing wise ...
and can have a good smile on funny fps -> ms calculations ...

karl krach's icon

awesome! thanks to both of you!!!
k

Stephane Morisse's icon
Max Patch
Copy patch and select New From Clipboard in Max.

In Andro's solution, you can send a query to jit.qt.movie to get the frame count of the movie when you load it, allowing you to set the counter maximum automatically.