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
|
|||||||||||||||
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 ( |
|||||||||||||||
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 |