ZegoVideoConfigPreset enum

Video configuration resolution and bitrate preset enumeration. The preset resolutions are adapted for mobile and desktop. On mobile, height is longer than width, and desktop is the opposite. For example, 1080p is actually 1080(w) x 1920(h) on mobile and 1920(w) x 1080(h) on desktop.

Inheritance
  • Object
  • Enum
  • ZegoVideoConfigPreset

Constructors

ZegoVideoConfigPreset()
const

Values

Preset180P → const ZegoVideoConfigPreset

Set the resolution to 320x180, the default is 15 fps, the code rate is 300 kbps

Preset270P → const ZegoVideoConfigPreset

Set the resolution to 480x270, the default is 15 fps, the code rate is 400 kbps

Preset360P → const ZegoVideoConfigPreset

Set the resolution to 640x360, the default is 15 fps, the code rate is 600 kbps

Preset540P → const ZegoVideoConfigPreset

Set the resolution to 960x540, the default is 15 fps, the code rate is 1200 kbps

Preset720P → const ZegoVideoConfigPreset

Set the resolution to 1280x720, the default is 15 fps, the code rate is 1500 kbps

Preset1080P → const ZegoVideoConfigPreset

Set the resolution to 1920x1080, the default is 15 fps, the code rate is 3000 kbps

Properties

hashCode → int
The hash code for this object.
read-onlyinherited
index → int
A numeric identifier for the enumerated value.
read-onlyinherited
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited

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<ZegoVideoConfigPreset>
A constant List of the values in this enum, in order of their declaration.
[Preset180P, Preset270P, Preset360P, Preset540P, Preset720P, Preset1080P]