VideoSettings class
Video encoding configuration settings for WebRTC streams.
These settings control the default resolution, framerate, and bitrate for outgoing video streams.
Example JSON:
{
"defaultWidth": 1280,
"defaultHeight": 720,
"defaultFramerate": 30,
"defaultBitrateKbps": 2000
}
Constructors
- VideoSettings({required int defaultWidth, required int defaultHeight, required int defaultFramerate, required int defaultBitrateKbps})
- Creates video settings with the specified parameters.
-
VideoSettings.fromJsonFile(Map<
String, dynamic> json) - Creates video settings from a JSON map.
Properties
- defaultBitrateKbps → int
-
Default bitrate in kilobits per second.
final
- defaultFramerate → int
-
Default framerate in frames per second.
final
- defaultHeight → int
-
Default video height in pixels.
final
- defaultWidth → int
-
Default video width in pixels.
final
- hashCode → int
-
The hash code for this object.
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited