BitRate enum

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

Resolution Frame Rate (fps) Base Bitrate (Kbps) Live Bitrate (Kbps)
160 * 120 15 65 130
120 * 120 15 50 100
320 * 180 15 140 280
180 * 180 15 100 200
240 * 180 15 120 240
320 * 240 15 200 400
240 * 240 15 140 280
424 * 240 15 220 440
640 * 360 15 400 800
360 * 360 15 260 520
640 * 360 30 600 1200
360 * 360 30 400 800
480 * 360 15 320 640
480 * 360 30 490 980
640 * 480 15 500 1000
480 * 480 15 400 800
640 * 480 30 750 1500
480 * 480 30 600 1200
848 * 480 15 610 1220
848 * 480 30 930 1860
640 * 480 10 400 800
1280 * 720 15 1130 2260
1280 * 720 30 1710 3420
960 * 720 15 910 1820
960 * 720 30 1380 2760

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:

Inheritance
Available extensions

Values

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.
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.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
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

Constants

values → const List<BitRate>
A constant List of the values in this enum, in order of their declaration.