Video Player Foundation Class
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
This class loads and plays a video file, and provides access to the Media Control Interface (MCI).
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 Classes for 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: CloseVideo( ) Return: none Arguments: none |
DoMCI method | Executes an MCI command. Syntax:DoMCI(cMCIcmd) Return: cRetString Arguments: cMCIcmd specifies the command to run. |
PauseVideo method | Pauses a currently playing video. Syntax: PauseVideo( ) Return: none Arguments: none |
PlayVideo method | Plays the currently loaded video. Syntax: PlayVideo( ) Return: none Arguments: none |
SetPosition method | Makes it possible for the user to set the position of the media file. Syntax: SetPosition(cPosition) 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. |
See Also
Guidelines for Using Visual FoxPro Foundation Classes | Visual FoxPro Foundation Classes A-Z | Visual FoxPro Foundation Classes | Play Multimedia Files Using MCI Commands