how to get current playback time from jit.movie?
It seemed like such a simple thing, I just need to display the current playback time from a jit.movie in HH:MM:SS format, but I just can't figure out how to do it...
thanks,
xaf
In jit.movie's help file, check the "query" tab. Then something like [translate ms hh:mm:ss] may be very usefull.
gettime query to jit.movie as shown in help file
can not be translated to HH:MM:SS
simply because it is not miliseconds but time units.
One can query timescale after loading file, being audio or video.
Output of gettime should be divided by timescale.
Luckily at some point message gettime_secs
was added to jit.movie to set or get time in seconds.
You multiply that by 1000. and than it can be sent to
translate object
Max Patch
Copy patch and select New From Clipboard in Max.
Excellent, that's exactly what I need.
Thanks!