MediaMixer
Routes captured audio and composited video to registered outputs.
Attach capture sources to numbered tracks, register streams or recorders with registerOutput, and call startRunning to start capture. Call stopRunning to stop capture and dispose when the mixer is no longer needed.
Properties
Functions
Replaces the audio source on a track, closing the previous source first.
Replaces the video source on a track, closing the previous source first.
Replaces the specified tracks together. All new sources are opened before any is attached to a surface, as required for concurrent Camera2 capture. If replacement fails, the previous configuration is restored and its closed sources are reopened when running.
Registers an output instance.
Applies an effect to the video screen objects currently assigned to track.
Starts capture and schedules attached sources to open asynchronously. Does nothing if already running.
Stops capture and schedules attached sources to close asynchronously. Does nothing if already stopped.
Unregisters an output instance. A buffer delivery already in progress can still include this output.