MediaRecorderConfiguration class
Configurations for the local audio and video recording.
- Annotations
-
- @JsonSerializable(explicitToJson: true)
Constructors
- MediaRecorderConfiguration({required String storagePath, MediaRecorderContainerFormat containerFormat = MediaRecorderContainerFormat.MP4, MediaRecorderStreamType streamType = MediaRecorderStreamType.Both, int maxDurationMs = 120000, int recorderInfoUpdateInterval = 0})
- Constructs the MediaRecorderConfiguration.
Properties
- containerFormat → MediaRecorderContainerFormat
-
The format of the recording file. See MediaRecorderContainerFormat .
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxDurationMs → int
-
The maximum recording duration, in milliseconds. The default value is 120,000.
final
- recorderInfoUpdateInterval → int
-
The interval (ms) of updating the recording information. The value range is
1000,10000
. The SDK triggers the onRecorderInfoUpdated callback to report the updated recording information according to interval you set in this parameter.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- storagePath → String
-
The absolute path (including the filename extensions) of the recording file. For example, C:\Users<user_name>\AppData\Local\Agora<process_name>\example.mp4 on Windows, /App Sandbox/Library/Caches/example.mp4 on iOS, /Library/Logs/example.mp4 on macOS, and /storage/emulated/0/Android/data/
final
- streamType → MediaRecorderStreamType
-
The recording content. See MediaRecorderStreamType .
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited