BitRate enum Null safety

Sets the video bitrate (Kbps). Refer to the table below and set your bitrate. Video Bitrate Table

ResolutionFrame Rate (fps)Base Bitrate (Kbps)Live Bitrate (Kbps)
160 * 1201565130
120 * 1201550100
320 * 18015140280
180 * 18015100200
240 * 18015120240
320 * 24015200400
240 * 24015140280
424 * 24015220440
640 * 36015400800
360 * 36015260520
640 * 360306001200
360 * 36030400800
480 * 36015320640
480 * 36030490980
640 * 480155001000
480 * 48015400800
640 * 480307501500
480 * 480306001200
848 * 480156101220
848 * 480309301860
640 * 48010400800
1280 * 7201511302260
1280 * 7203017103420
960 * 720159101820
960 * 7203013802760

Note

  • The base bitrate in this table applies to the Communication profile.
  • The LiveBroadcasting profile generally requires a higher bitrate for better video quality. We recommend setting the bitrate mode as 0. You can also set the bitrate as the base bitrate value x 2.

If you set a bitrate beyond the proper range, the SDK automatically adjusts it to a value within the range. You can also choose from the following options:

Constants

Compatible → const BitRate

The compatible bitrate mode. In this mode, the bitrate stays the same regardless of the profile. In the LiveBroadcasting profile, if you choose this mode, the video frame rate may be lower than the set value.

@JsonValue(-1)
const BitRate(1)
Standard → const BitRate

(Recommended) The standard bitrate mode. In this mode, the bitrates differ between the LiveBroadcasting and Communication profiles:

  • Communication profile: the video bitrate is the same as the base bitrate.
  • LiveBroadcasting profile: the video bitrate is twice the base bitrate.
@JsonValue(0)
const BitRate(0)
values → const List<BitRate>

A constant List of the values in this enum, in order of their declaration.

const List<BitRate>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

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