VideoMixerSettings constructor
Implementation
const factory VideoMixerSettings({
/// Specifies how video frames are rendered.
///
/// If the value is missing or an unknown enum value is received from JSON,
/// [VideoRenderingMode.offscreen] will be used as the default.
@JsonKey(
defaultValue: VideoRenderingMode.offscreen,
unknownEnumValue: VideoRenderingMode.offscreen,
)
@Default(VideoRenderingMode.offscreen)
VideoRenderingMode mode,
/// Whether the video output is muted.
///
/// When set to `true`, video frames are not rendered or mixed.
@Default(false) bool isMuted,
/// Index of the main video track.
///
/// This value is typically used when multiple video tracks are available
/// and one of them should be treated as the primary source.
@Default(0) int mainTrack,
}) = _VideoMixerSettings;