Copyright © 2001-2019 MultiMedia Soft

VideoPlayer.VideoWindowChangeTarget method

Previous pageReturn to chapter overviewNext page

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.

 

Changes one of the output rendering windows of the video player. After this change, the positioning of the output window can be modified through the  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.VideoWindowChangeTarget (

nPlayer as Integer,

nUniqueID as Long,

hWndTarget as OLE_HANDLE

) as enumErrorCodes


 

[C++]

short control.VideoPlayer.VideoWindowChangeTarget (

short nPlayer,

long nUniqueID,

OLE_HANDLE 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, check the LastError property value in order to get the error code

enumErrorCodes.ERR_NOERROR (0)

The method call was successful