This method opens the video file.
Public Function Open(ByVal fileName As String) As Boolean
Public Function Open(ByVal fileName As String, ByVal outputControl As System.Windows.Forms.Control) As Boolean
public bool Open(string fileName);
public bool Open(string fileName, System.Windows.Forms.Control outputControl);
Parameters
fileName
The name of the video file
outputControl
The control that displays the output
Return Value
Returns True if successful, otherwise returns False
Explanation
The Open method opens the video file.
The fileName parameter holds the name of the video file that will be played.
The outputControl parameter holds the control that displays the output. If no control is passed to the outputControl parameter, the output will be displayed in the Play control.
If successful, the State property will be changed. If unsuccessful, then "DirectX", "Step", "FileOpen" or "Interface" will be set in the ErrorStatus property.
IMPORTANT: The Play Control uses DirectShow which supports only general media format filters by default. It is possible to use some other codecs. However, if you want to open a file in one of these other formats that is not supported by default, you will first need to obtain and install the appropriate codec.
See Also
Play Members | Newtone.ImageKit.Win.WebCamera.Play