TRTCMixUser

TRTCMixUser

Description information of each video image in On-Cloud MixTranscoding

Constructor

new TRTCMixUser(userId, roomId, rect, zOrder, pureAudio, streamType, inputType, renderMode, image)

TRTCMixUser is used to specify the location, size, layer, and stream type of each video image in On-Cloud MixTranscoding.

Parameters:
Name Type Description
userId String required

user ID

roomId String required

ID of the room where this audio/video stream is located (an empty string value indicates the local room ID)

rect Rect required

specify the coordinate area of this video image in px

Properties
Name Type Description
left Number required

left coordinate value of this image

top Number required

top coordinate value of this image

right Number required

right coordinate value of this image

bottom Number required

bottom coordinate value of this image

zOrder Number required

specify the level of this video image (value range: 1–15; the value must be unique)

pureAudio Boolean required

specify whether this stream mixes audio only

streamType TRTCVideoStreamType required

specify whether this video image is the primary stream image (TRTCVideoStreamTypeBig) or substream image (TRTCVideoStreamTypeSub).

inputType TRTCMixInputType required

Specify the mixed content of the stream (mix audio only, mix video only, mix audio video, mix watermark)

renderMode Number required

The display mode of this screen when outputting

image String required

placeholder or watermark