|
Copyright © 2001-2008 MultiMedia Soft
Return to Table of contents
|
|
[Visual Basic]
control.VideoPlayer.Create (
nPlayer as Integer,
hWndTarget as OLE_HANDLE,
nLeft as Long,
nTop as Long,
nWidth as Long,
nHeight as Long
) as enumErrorCodes
|
|
[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
|
|
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
|