Copyright © 2001-2019 MultiMedia Soft

VideoPlayer.AttachToVideoMixer method

Previous pageReturn to chapter overviewNext page

Remarks

 

Attaches the given video player to an instance of the video mixer. The video player can be detached at a later time through the VideoPlayer.DetachFromVideoMixer method.

 

When the video player has been attached to the video mixer, only the first rendering window added through the VideoPlayer.VideoWindowAdd will be available for preview purposes: the other eventual rendering windows will stay inactive until the video player is detached from the video mixer through a call to the VideoPlayer.DetachFromVideoMixer method and a new video clip is loaded into the video player. .

 

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.

 

For further details about the use of the embedded video mixer see the VideoMixer object section.

For details about video mixing/blending refer to the How to use the video mixer tutorial.

 

 

Syntax

 

[Visual Basic]

control.VideoPlayer.AttachToVideoMixer (

nPlayer as Integer,

nMixerUniqueId as Long

) as enumErrorCodes


 

[C++]

short control.VideoPlayer.AttachToVideoMixer (

short nPlayer,

long nMixerUniqueId

);


 

 

 

Parameter

Description

 

 

nPlayer

Number representing the zero-based index of the player that will use the video player.

nMixerUniqueId

Unique identifier of the video mixer returned by a previous call to the VideoMixer.Create method

 

 

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