Skip to content

Mixer_AddToMixer

function

Delphi
function Mixer_AddToMixer (SourceUniqueID: LongInt; SourceVideoInput: LongInt; MosaicLine: LongInt; MosaicColumn: LongInt; AlternatedGroup: LongInt; AlternatedTimeIntervalInMs: LongInt; ReplacePreviouslyAdded: Boolean; CanEraseBackground: Boolean): LongInt;
C++Builder
System::LongInt __fastcall Mixer_AddToMixer(System::LongInt SourceUniqueID, System::LongInt SourceVideoInput, System::LongInt MosaicLine, System::LongInt MosaicColumn, System::LongInt AlternatedGroup, System::LongInt AlternatedTimeIntervalInMs, bool ReplacePreviouslyAdded, bool CanEraseBackground);
C#
public int Mixer_AddToMixer(int SourceUniqueID, int SourceVideoInput, int MosaicLine, int MosaicColumn, int AlternatedGroup, int AlternatedTimeIntervalInMs, bool ReplacePreviouslyAdded, bool CanEraseBackground);
VB.NET
Public Function Mixer_AddToMixer(SourceUniqueID As Integer, SourceVideoInput As Integer, MosaicLine As Integer, MosaicColumn As Integer, AlternatedGroup As Integer, AlternatedTimeIntervalInMs As Integer, ReplacePreviouslyAdded As Boolean, CanEraseBackground As Boolean) As Integer
C++/Qt
int Mixer_AddToMixer (int SourceUniqueID, int SourceVideoInput, int MosaicLine, int MosaicColumn, int AlternatedGroup, int AlternatedTimeIntervalInMs, BOOL ReplacePreviouslyAdded, BOOL CanEraseBackground);

Associates 2 TVideoGrabber components in Mixer mode: invoke this function on the mixer component to associate a source TVideoGrabber component with it in Mixer mode. The mixer component must have been set in this mode by setting VideoSource = vs_Mixer.

Sample code for this function is available in the How to mix several video sources into a single one chapter.

Parameters:

  • SourceUniqueID: UniqueID of the source component.

  • SourceVideoInput: not used yet, set it to 0.

  • MosaicLine: row where the source video must be placed when several sources are displayed on a mosaic layout (set to 0 if the mosaic layout is not used).

  • MosaicColumn: column where the source video must be placed when several sources are displayed on a mosaic layout (set to 0 if the mosaic layout is not used).

  • AlternatedGroup: group in which the source video is displayed alternately. Any number can be specified. The rule is: all the sources associated with this mixer with this group number are displayed at the same time, and never at the same time as the other sources associated with this mixer with other group numbers.

  • AlternatedTimeIntervalInMs: duration of display of the sources having this group number in the mixer, in milliseconds. If several sources are associated with a mixer with the same group number but not the same duration, only one of these durations is taken into account when this group is displayed: to prevent confusion, associate each source of a given group with the mixer with the same duration.

  • ReplacePreviouslyAdded: specifies whether invoking Mixer_AddToMixer on a given video source replaces any previous Mixer_AddToMixer setting. Recommended value: true.

  • CanEraseBackground: specifies whether the background must be erased on the mixer when Mixer_AddToMixer is invoked while the mixer is running. Recommended value: true.

Return value: an identifier that can be used to remove the current Mixer_AddToMixer setting by invoking Mixer_RemoveFromMixer.