The Play Control provides properties, methods, and events to open a video file and display the output. Play can be started, stopped, paused, resumed, and a snapshot can be taken.
Property List
| Custom Properties | Explanation |
|---|---|
| Appearance | Sets the appearance of the Play Control's border |
| BackColor | Sets the background color for the Play Control |
| BorderColor | Sets the color of Play Control's the border. |
| BorderVisible | Sets whether or not the border of the Play Control is displayed |
| Duration | Retrieves the duration of the video in seconds |
| Enabled | Sets whether or not the mouse and keyboard events of the Play Control are enabled |
| ErrorStatus | Retrieves the type of error that has occurred |
| FrameRate | Retrieves the frame rate |
| HWND | Refers to the window handle of the Play Control |
| MouseCursorFile | Sets the name of the cursor file used for the user defined mouse cursor |
| MouseCursorType | Sets the shape of the mouse cursor when the mouse is within the Play Control |
| State | Retrieves the current state of the Play Control |
| VideoHeight | Retrieves the height of the video |
| VideoWidth | Retrieves the width of the video |
Method List
| Custom Method | Explanation |
|---|---|
| Close | Closes the video file |
| Open | Opens the video file |
| Pause | Pauses the video or restarts a paused video |
| Start | Starts the video |
| StartFrom | Sets the starting location of the video |
| Stop | Stops the video |
| TakeSnapshot | Takes a snapshot from the video |
Event List
| Custom Event | Explanation |
|---|---|
| End | Generated when the video plays to the end |
| Snapshot | Generated when a snapshot is taken from the video |