TVideoGrabber.Mixer_Activation

Prev

Next

TVideoGrabber

Methods

 




































































































Enables / disables temporarily a mixing


Declaration
function Mixer_Activation(Id: LongInt; Activate: Boolean): Boolean;


bool __fastcall Mixer_Activation(int Id, bool Activate)


Function Mixer_Activation (Id as Long, Activate as Boolean) as Boolean

Description

Used to enable / disable the video mixing of a source component in the mixer component.
Pass as parameter the mixer Id returned by Mixer_AddToMixer when associating the source component to the mixer.

E.g. VideoGrabber1 previews a video capture device, and VideoGrabber2 "duplicates" the video frames from VideoGrabber1, like it was a 2nd component capturing the same device:

- to start the preview of the capture device:

VideoGrabber1.VideoSource = vs_VideoCaptureDevice
VideoGrabber1.StartPreview

- to start the 2nd component that will preview the frames of the 1st component, in mixer mode:

VideoGrabber2.VideoSource = vs_Mixer
MixerId = VideoGrabber2.Mixer_AddToMixer (VideoGrabber1.UniqueID, 0, 0, 0, 0, 0, true, true)
VideoGrabber2.StartPreview

- to disable temporarily the mixing:

VideoGrabber2.Mixer_Activation (MixerId, false)

- to resume temporarily the mixing:

VideoGrabber2.Mixer_Activation (MixerId, true)


See Also
Mixer_AddToMixer Mixer_MosaicColumns Mixer_MosaicLines Mixer_RemoveFromMixer Mixer_SetupPIPFromSource