Forums > Jitter

jit.qt.movie behaviour

October 11, 2013 | 8:40 pm

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


October 12, 2013 | 4:02 am

Here you go.
<code>

– Pasted Max Patch, click to expand. –

</code>


October 12, 2013 | 4:07 am

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 …

–]]

<code>

– Pasted Max Patch, click to expand. –

</code>

____________________________
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 …


October 12, 2013 | 9:12 am

awesome! thanks to both of you!!!
k


October 12, 2013 | 12:23 pm

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.

<code>

– Pasted Max Patch, click to expand. –

</code>


Viewing 5 posts - 1 through 5 (of 5 total)