setFrameDelay
Top  Previous  Next

setFrameDelay ( integer Sequence, integer Delay [, integer Frame ] )

Use this function to change an interval between the frames in a sequence. If the Frame parameter is omitted, the specified delay will be set for all frames in the sequence, otherwise it will be treated as the delay between the specified frame and the next frame.

Parameters
 
Sequence  
 
An integer between 1 and 116 specifying the number of the sequence. Values in the range of 100-116 correspond to hidden sequences.  
 
Delay  
 
An positive integer specifying the new delay between the frames in the sequence, in milliseconds.  
 
Frame  
 
An optional positive integer specifying the number of the frame for which the specified delay will be set. If this parameter is omitted, the same delay will be set between all frames in the sequence.  
 
Error flags

ERR_OK  
 
The flag set if successful.  
 
ERR_FAILED  
 
The flag set if failed.  
 
Example

This set of statements grabs a sequence from the video device at a rate of 200 ms between the frames and then changes it to 20 ms.  
 
grabSeq(1, 20, 200)  
wait (5000)  
setFrameDelay(1,20)