Copyright © 2001-2008 MultiMedia Soft 
Return to Table of contents  
 
VideoPlayer.Create method 
 
Remarks 
 
Creates the video player rendering window and links it to a given player: once created, the rendering window will stay active until the termination of the container form. 
The rendering window can be hidden or shown through the VideoPlayer.Show method and moved or resized through the VideoPlayer.Move method. 
 
For further details about the use of the embedded video player see the VideoPlayer object section. 
For details about video clips rendering refer to the How to play video files through DirectShow tutorial. 
 
 
Syntax 
 
[Visual Basic] 
control.VideoPlayer.Create
nPlayer as Integer
hWndTarget as OLE_HANDLE, 
nLeft as Long
nTop as Long
nWidth as Long
nHeight as Long 
 
[C++] 
short control.VideoPlayer.Create
short nPlayer
OLE_HANDLE hWndTarget
long nLeft
long nTop
long nWidth
long nHeight 
);
 
 
 
Parameter
Description
 
 
nPlayer
Number representing the zero-based index of the player that will use the video player.
hWndTarget
Handle of the window whose surface will be used in order to render video frames. If this parameter should be set to 0, DirectShow would automatically provide a floating window.
nLeft
Left position of the video window, expressed in client coordinates (pixels) of the container form
nTop
Top position of the video window, expressed in client coordinates (pixels) of the container form
nWidth
Width of the video window, expressed in pixels
nHeight
Height of the video window, expressed in pixels
 
 
Return value 
 
Value
Meaning
 
 
Negative value
An error occurred, check the LastError property value in order to get the error code
enumErrorCodes.ERR_NOERROR (0)
The method call was successful
 
 
 
 
 
 
 
 
Copyright © 2001-2008 MultiMedia Soft 
Return to Table of contents