Remarks
Changes one of the output rendering windows of the video player previously added through the VideoPlayer.VideoWindowAdd method. After this change, the positioning of the output window can be modified through the VideoPlayer.VideoWindowMove method.
For further details about the use of the embedded video player see the VideoPlayer class section.
For details about video clips rendering refer to the How to play video files through DirectShow tutorial.
Syntax
[Visual Basic]
Public Function VideoWindowChangeTarget (
nPlayerIndex as Int16,
nUniqueID as Int32,
hWndTarget as IntPtr
) as enumErrorCodes
|
|
[C#]
public enumErrorCodes VideoWindowChangeTarget (
Int16 nPlayerIndex,
Int32 nUniqueID,
IntPtr hWndTarget
);
|
|
[C++]
public: enumErrorCodes VideoWindowChangeTarget (
Int16 nPlayerIndex,
Int32 nUniqueID,
IntPtr hWndTarget
);
|
|
Parameter
|
Description
|
|
|
nPlayer
|
Number representing the zero-based index of the player that will use the video player.
|
nUniqueID
|
Unique identifier of the rendering window previously used for the call to the VideoPlayer.VideoWindowAdd method.
|
hWndTarget
|
Handle of the window/control whose surface will be used in order to render video frames; this handle must belong to a valid and existing window/control or the method call will fail.
|
Return value
Value
|
Meaning
|
|
|
Negative value
|
An error occurred (see the LastError property for further error details)
|
enumErrorCodes.NOERROR (0)
|
The method call was successful.
|
|