TRTCMixUser class

在云端混流转码中,每个通道子画面的位置信息

TRTCMixUser 用于指定每个通道(即每个 userId)的视频画面的详细位置。

Constructors

TRTCMixUser({String userId = '', String roomId = "", int x = 0, int y = 0, int width = 0, int height = 0, int zOrder = 0, int streamType = TRTCCloudDef.TRTC_VIDEO_STREAM_TYPE_BIG, int? inputType = 0, bool pureAudio = false})

Properties

hashCode int
The hash code for this object.
no setterinherited
height int
图层位置的高度(绝对像素值)
getter/setter pair
inputType int?
用户是否仅启用音频或仅启用视频,1-启用音频和视频,2-仅视频,3-仅音频
getter/setter pair
pureAudio bool
用户是否仅启用音频
getter/setter pair
roomId String
参与混流转码的 userId 所在的 roomIdnull 值表示当前房间
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
streamType int
参与混流转码的是主画面(TRTCCloudDef.TRTC_VIDEO_STREAM_TYPE_BIG,默认值)还是屏幕分享画面(TRTCCloudDef.TRTC_VIDEO_STREAM_TYPE_SUB
getter/setter pair
userId String
参与混流转码的 userId
getter/setter pair
width int
图层位置的宽度(绝对像素值)
getter/setter pair
x int
图层位置的 X 坐标(绝对像素值)
getter/setter pair
y int
图层位置的 Y 坐标(绝对像素值)
getter/setter pair
zOrder int
图层编号(1-15),必须唯一
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
将当前对象转换为 JSON 格式。
toString() String
A string representation of this object.
inherited

Operators

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