"The code is exactly
how I would like to write code and the algorithms used are very
efficient and well-documented."
Van T. Dinh, Microsoft MVP
|
|
Class: CAVI
Class that plays AVI files using the MCI (media control interface) API This class allows you to interact with AVI movies without using the Microsoft Multimedia Control. This class also allows you to play movies on your form. With the Microsoft Multimedia Control you can only play movies in a separate window.
|
Procedure Name
|
Type
|
Description
|
|
(Declarations)
|
Declarations
|
Declarations and private variables for the CAVI class
|
|
FileName
|
Property
|
Sets the FileName of the AVI file to play.
|
|
Height
|
Property
|
Sets the height of the playback window, in pixels.
|
|
hwnd
|
Property
|
Gets handle of the AVI window.
|
|
hWndParent
|
Property
|
Sets the handle of the parent window. This property is only valid after calling the OpenAVI method.
|
|
Left
|
Property
|
Sets the left position of the playback window in pixels, relative to the parent window
|
|
Length
|
Property
|
Gets the length of the AVI movie
|
|
Position
|
Property
|
Gets the current playback position.
|
|
Stretch
|
Property
|
Gets the value of the stretch flag.
|
|
Top
|
Property
|
Sets the top position of the playback window in pixels, relative to the parent window.
|
|
Width
|
Property
|
Gets the width of the playback window.
|
|
Class_Terminate
|
Terminate
|
Make sure the AVI file is closed
|
|
CloseAVI
|
Method
|
Close the AVI file
|
|
OpenAVI
|
Method
|
Open the AVI file. This method must be called before attempting to play the AVI file.
|
|
Pause
|
Method
|
Pause the playback
|
|
Play
|
Method
|
Play the AVI file
|
|
PositionMovieWindow
|
Private
|
Position the movie playback window.
If stretch is True then make playback window the size indicated in the width and height properties.
Otherwise size it to the size of the movie starting at the left and top properties All measurements are in pixels
|
|
Rewind
|
Method
|
Rewinds the movie
|
|
StopPlay
|
Method
|
Stop the AVI play
|
Overview of Total Visual SourceBook
The source code in Total Visual
SourceBook includes modules and classes for Microsoft Access, Visual
Basic 6 (VB6), and Visual Basic for Applications (VBA) developers. Easily
add this professionally written, tested, and documented royalty-free code
into your applications to simplify your application development efforts.
Additional Resources
|
|