Curious QT playback problem

Dave Cragg dave.cragg at lacscentre.co.uk
Thu Jun 7 04:02:12 EDT 2007


On 7 Jun 2007, at 03:59, J. Landman Gay wrote:

> the script gets the currentTime, checks every 250 milliseconds, and  
> when the currentTime remains unchanged, assumes the playback is  
> done. Then it moves on to the next file.

 From what you describe, it sounds like either the currentTime isn't  
reported correctly, or there is some kind of delay at the start of  
play so the currenttime doesn't change (stuck at 0) in the first 250  
milliseconds. Do you reset the timer at the start of each clip? I  
could imagine some over-enthuiastic virus-checker causing a delay as  
you switch files in the Player, and possibly when QuickTime tries to  
start playing the file. Or a very full hard drive.

Off the top of my head, set the currentTime to 0 for each clip, then  
check that the currentTime hasn't changed AND that it is not 0.

(Using the playStopped message would be easier. :-))

Dave



More information about the use-livecode mailing list