MediaMixerOptions class
Configuration options for the media mixer.
This class defines how the media mixer captures and mixes audio and video.
It supports JSON serialization/deserialization via freezed and json_serializable.
Example:
final options = MediaMixerOptions(
captureSessionMode: CaptureSessionMode.multi,
multiTrackAudioMixingEnabled: true,
);
This class is immutable. To modify values, use copyWith.
Constructors
- MediaMixerOptions({CaptureSessionMode captureSessionMode, bool multiTrackAudioMixingEnabled})
-
constfactory
-
MediaMixerOptions.fromJson(Map<
String, dynamic> json) -
factory
Properties
- captureSessionMode → CaptureSessionMode
-
Specifies how capture sessions are managed.
no setterinherited
-
copyWith
→ $MediaMixerOptionsCopyWith<
MediaMixerOptions> -
Create a copy of MediaMixerOptions
with the given fields replaced by the non-null parameter values.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- multiTrackAudioMixingEnabled → bool
-
Enables mixing multiple audio tracks independently when set to true. Defaults to false.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this MediaMixerOptions to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited