VideoConfig class

Live streaming video configuration.

Annotations
  • @JsonSerializable()

Constructors

VideoConfig({required int bitrate, Resolution resolution = Resolution.RESOLUTION_720, int fps = 30})
Creates a VideoConfig instance
VideoConfig.fromJson(Map<String, dynamic> json)
Creates a VideoConfig from a json map.
factory
VideoConfig.withDefaultBitrate({Resolution resolution = Resolution.RESOLUTION_720, int fps = 30})
Creates a VideoConfig instance where bitrate is set according to the given resolution.

Properties

bitrate int
The video bitrate in bps
getter/setter pair
fps int
The video frame rate in fps
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
resolution Resolution
The live streaming video resolution
getter/setter pair
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>
Creates a json map from a VideoConfig.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited