VideoPlayer.AttachToVideoMixer method |
|
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 class 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] Public Function AttachToVideoMixer ( nPlayerIndex as Int16, nMixerUniqueId as Int32 ) as enumErrorCodes |
[C#] public enumErrorCodes AttachToVideoMixer ( Int16 nPlayerIndex, Int32 nMixerUniqueId ); |
[C++] public: enumErrorCodes AttachToVideoMixer ( Int16 nPlayerIndex, Int32 nMixerUniqueId ); |
Parameter |
Description |
|
|
nPlayerIndex |
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 (see the LastError property for further error details) |
enumErrorCodes.NOERROR (0) |
The method call was successful. |