TranscodingUser class Null safety

The transcodingUser class, which defines the audio and video properties in the CDN live. Agora supports a maximum of 17 transcoding users in a CDN live streaming channel.

Annotations
  • @JsonSerializable(explicitToJson: true)

Constructors

TranscodingUser(int uid, {int? x, int? y, int? width, int? height, int? zOrder, double? alpha, AudioChannel? audioChannel})
Constructs a TranscodingUser

Properties

alpha double?
The transparency of the video frame of the user in the CDN live stream that ranges between 0.0 and 1.0. 0.0 means that the video frame is completely transparent and 1.0 means opaque. The default value is 1.0.
@JsonKey(includeIfNull: false), read / write
audioChannel AudioChannel?
The audio channel ranging between 0 and 5. The default value is 0. See AudioChannel. [...]
@JsonKey(includeIfNull: false), read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
height int?
Height of the video frame of the user on the CDN live streaming. The default value is 640.
@JsonKey(includeIfNull: false), read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
uid int
ID of the user in the CDN live streaming.
read / write
width int?
Width of the video frame of the user on the CDN live streaming. The default value is 360.
@JsonKey(includeIfNull: false), read / write
x int?
Horizontal position of the video frame of the user from the top left corner of the CDN live streaming.
@JsonKey(includeIfNull: false), read / write
y int?
Vertical position of the video frame of the user from the top left corner of the CDN live streaming.
@JsonKey(includeIfNull: false), read / write
zOrder int?
The layer index of the video frame. An integer. The value range is 0,100. [...]
@JsonKey(includeIfNull: false), read / write

Methods

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

Operators

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