VideoQuality enum

Video quality level. The final encoding resolution is determined by the combination of this level and VideoOrientation: landscape keeps the base resolution (width x height), portrait swaps the width and height.

This enum defines the video capture quality levels. The SDK has built-in resolution, frame rate, and bitrate combinations for each level, making it easy to choose for different scenarios.

The base (landscape) resolution of each level is shown in the table below; with VideoOrientation.portrait the width and height are swapped (e.g. quality720P is 1280 x 720 in landscape, 720 x 1280 in portrait).

Different levels affect RTC service billing. For pricing details, please refer to: https://trtc.io/document/42734?product=pricing

Response Scenarios

Quality Value Landscape (W x H) / Portrait (W x H)
quality360P 1 640 x 360 / 360 x 640
quality540P 2 960 x 540 / 540 x 960
quality720P 3 1280 x 720 / 720 x 1280
quality1080P 4 1920 x 1080 / 1080 x 1920
Inheritance
Available extensions

Values

quality360P → const VideoQuality

360P. Landscape resolution is 640 x 360; portrait (width and height swapped) is 360 x 640.

const VideoQuality(1)
quality540P → const VideoQuality

540P. Landscape resolution is 960 x 540; portrait (width and height swapped) is 540 x 960.

const VideoQuality(2)
quality720P → const VideoQuality

720P. Landscape resolution is 1280 x 720; portrait (width and height swapped) is 720 x 1280.

const VideoQuality(3)
quality1080P → const VideoQuality

1080P. Landscape resolution is 1920 x 1080; portrait (width and height swapped) is 1080 x 1920.

const VideoQuality(4)

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
value int
final

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<VideoQuality>
A constant List of the values in this enum, in order of their declaration.