LoadSequence
Top  Previous  Next

Description

Loads a fragment of the specified AVI or TIFF file into the memory sequence.


Syntax


[VB]
objActiveDcam.LoadSequence File [,Start, End ]


[C/C++]
HRESULT LoadSequence( bstr File, long Start, long End );


Data Types
[VB]

File: String
Start: Long
End: Long


Parameters
[C/C++]

File [in]  
The string containing the file name and path. The extension of the file must be "avi" or "tif".  
Start [in]  
The zero-based index of the first frame of the video fragment to be loaded. If omitted, frame 0 will be used.  
End [in]  
The zero-based index of the last frame of the video fragment to be loaded. If omitted, the last frame will be used.  

Return Values


S_OK  
Success  
E_FAIL  
Failure.  
E_INVALIDARG  
Invalid file name or file not found.  


Example


This VB example loads a video sequence from a TIFF file into the memory and plays it.


ActiveDcam1.LoadSequence "video1.tif"
ActiveDcam1.OpenVideo "ram"
ActiveDcam1.PlayVideo

 

Remarks


If the system memory doesn't have enough capacity to accommodate the specified video fragment, the video will be truncated to fit the maximum memory size available for the application.