TranscodingUser class Null safety

TranscodingUser 类用于管理参与旁路直播的音视频转码合图的用户。最多支持 17 人同时参与转码合图。

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
TranscodingUser.fromJson(Map<String, dynamic> json)
factory

Properties

alpha double?
直播视频上用户视频的透明度。取值范围为 0.0,100.0: [...]
@JsonKey(includeIfNull: false), read / write
audioChannel AudioChannel?
直播音频所在声道。取值范围为 0,5,默认值为 0。 详见 AudioChannel[...]
@JsonKey(includeIfNull: false), read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
height int?
视频帧高度 (pixel)。默认值为 640。
@JsonKey(includeIfNull: false), read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
uid int
旁路主播的用户 ID。
read / write
width int?
视频帧宽度 (pixel)。 默认值为 360。
@JsonKey(includeIfNull: false), read / write
x int?
屏幕里该区域相对左上角的横坐标绝对值 (pixel)。取值范围为转码配置参数定义中设置的 0,width
@JsonKey(includeIfNull: false), read / write
y int?
屏幕里该区域相对左上角的纵坐标绝对值 (pixel)。取值范围为转码配置参数定义中设置的 0,height
@JsonKey(includeIfNull: false), read / write
zOrder int?
视频帧图层编号。取值范围为 0,100 中的整型。支持将 zOrder 设置为 0[...]
@JsonKey(includeIfNull: false), read / write

Methods

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

Operators

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