This class loads and plays a video file, and provides access to the Media Control Interface (MCI).
Category | Multimedia |
---|---|
Default Catalog |
VisualВ FoxProВ Catalog\FoundationВ Classes\Multimedia |
Class |
_videoplayer |
Base Class |
Container |
Class Library |
multimedia.vcx |
Parent Class |
_container |
Sample |
...\Samples\Solution\Forms\mci_play.scx |
Remarks
To use, drop the class on a project or form, or from the Component Gallery Item shortcut menu, select Add to Project or Add to Form. When you drop the class on a project, you can choose between adding the class or creating a subclass. When you choose an option from the shortcut menu or drop the class on a form, Visual FoxPro opens a builder so you can specify appropriate cFileName, lAutoOpen, lAutoPlay, lAutoRepeat, and cControlSource values.
See Guidelines for Using Visual FoxPro Foundation Classesfor more information on using foundation classes.
Properties, Events, Methods | Description |
---|---|
AutoOpen property |
Specifies whether the video file specified should be automatically opened when the class is created. Default: .T. |
AutoPlay property |
Specifies whether the video file should automatically play after opening. Default: .T. |
AutoRepeat property |
If true (.T.), specifies that the video file will play continuously. Default: .T. |
cFileName property |
Specifies the video file associated with the Video Frame. Default: "" |
Controlsource property |
Specifies the source of data to which an object is bound. Default: "" |
MCIAlias property |
Specifies the alias for the video file when calling MCI commands. If empty, the name of the file is used. Default: "" |
MCIError property |
Specifies the result of the last MCI command executed. Default: 0 |
MCIErrorString property |
Stores the error string from the last MCI command executed. Default: "" |
CloseVideo method |
Closes the video file and releases all resources.
Syntax:
Return: none Arguments: none |
DoMCI method |
Executes an MCI command.
Syntax:
Return: cRetString Arguments: cMCIcmd specifies the command to run. |
PauseVideo method |
Pauses a currently playing video.
Syntax:
Return: none Arguments: none |
PlayVideo method |
Plays the currently loaded video.
Syntax:
Return: none Arguments: none |
SetPosition method |
Makes it possible for the user to set the position of the media file.
Syntax:
Return: none Arguments: cPosition specifies Start, End, or a number representing milliseconds into the media file. |
GetMCIError method |
Internal to the class. |
OpenVideo method |
Internal to the class. |
ShowMCIError method |
Internal to the class. |