BitrateMode enum
Defines the video bitrate optimization mode.
- Use this enum to control how VideoSDK optimizes video quality versus bandwidth usage.
- Different modes provide different trade-offs between video quality and network bandwidth.
Usage
final customConfig = CustomVideoTrackConfig(
bitrateMode: BitrateMode.HIGH_QUALITY,
);
Values
- BANDWIDTH_OPTIMIZED → const BitrateMode
-
Optimizes video streaming for minimal bandwidth usage.
- This mode prioritizes network stability over video quality, making it suitable for poor or unstable network conditions.
Example
final videoTrack = await VideoSDK.createCameraVideoTrack( bitrateMode: BitrateMode.BANDWIDTH_OPTIMIZED, ); - BALANCED → const BitrateMode
-
Balances video quality and bandwidth usage.
- This mode provides a good trade-off between quality and network efficiency and is recommended for most use cases.
Example
final videoTrack = await VideoSDK.createCameraVideoTrack( bitrateMode: BitrateMode.BALANCED, ); - HIGH_QUALITY → const BitrateMode
-
Optimizes video streaming for maximum video quality.
- This mode delivers the best visual quality and is suitable for high-speed and stable network connections.
Example
final videoTrack = await VideoSDK.createCameraVideoTrack( bitrateMode: BitrateMode.HIGH_QUALITY, );
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
BitrateMode> - A constant List of the values in this enum, in order of their declaration.