|
appId | Field description: appId of Tencent Cloud CSS Recommended value: please click Application Management > Application Information in the TRTC console and get the appId in Relayed Live Streaming Info . Note applications created on or after January 9, 2020 do not need to fill in this field. |
audioBitrate | Field description: specify the target audio bitrate of On-Cloud MixTranscoding Recommended value: default value: 64 Kbps. Value range: [32,192]. |
audioChannels | Field description: specify the number of sound channels of On-Cloud MixTranscoding Recommended value: default value: 1, which means mono channel. Valid values: 1: mono channel; 2: dual channel. |
audioCodec | Field description: specify the audio encoding type of On-Cloud MixTranscoding Recommended value: default value: 0, which means LC-AAC. Valid values: 0: LC-AAC; 1: HE-AAC; 2: HE-AACv2. Note HE-AAC and HE-AACv2 only support [48000, 44100, 32000, 24000, 16000] sample rate. HE-AACv2 only support dual channel. HE-AAC and HE-AACv2 take effects iff the output streamId is specified. |
audioSampleRate | Field description: specify the target audio sample rate of On-Cloud MixTranscoding Recommended value: default value: 48000 Hz. Valid values: 12000 Hz, 16000 Hz, 22050 Hz, 24000 Hz, 32000 Hz, 44100 Hz, 48000 Hz. |
backgroundColor | Field description: specify the background color of the mixed video image. Recommended value: default value: 0x000000, which means black and is in the format of hex number; for example: "0x61B9F1" represents the RGB color (97,158,241). |
backgroundImage | Field description: specify the background image of the mixed video image. **Recommended value: default value: null, indicating not to set the background image. Note TRTC's backend service will mix the image specified by the URL address into the final stream.URL link length is limited to 512 bytes. The image size is limited to 10MB.Support png, jpg, jpeg, bmp format. |
bizId | Field description: bizId of Tencent Cloud CSS Recommended value: please click Application Management > Application Information in the TRTC console and get the bizId in Relayed Live Streaming Info . Note applications created on or after January 9, 2020 do not need to fill in this field. |
mixUsers | Field description: specify the position, size, layer, and stream type of each video image in On-Cloud MixTranscoding Recommended value: this field is an array in TRTCMixUser type, where each element represents the information of a video image. |
mode | Field description: layout mode Recommended value: please choose a value according to your business needs. The preset mode has better applicability. |
streamId | Field description: ID of the live stream output to CDN Recommended value: default value: null, that is, the audio/video streams in the room will be mixed into the audio/video stream of the caller of this API. If you don't set this parameter, the SDK will execute the default logic, that is, it will mix the multiple audio/video streams in the room into the audio/video stream of the caller of this API, i.e., A + B => A. If you set this parameter, the SDK will mix the audio/video streams in the room into the live stream you specify, i.e., A + B => C (C is the streamId you specify). |
videoBitrate | Field description: specify the target video bitrate (Kbps) of On-Cloud MixTranscoding Recommended value: if you enter 0, TRTC will estimate a reasonable bitrate value based on videoWidth and videoHeight . You can also refer to the recommended bitrate value in the video resolution enumeration definition (in the comment section). |
videoFramerate | Field description: specify the target video frame rate (fps) of On-Cloud MixTranscoding Recommended value: default value: 15 fps. Value range: (0,30]. |
videoGOP | Field description: specify the target video keyframe interval (GOP) of On-Cloud MixTranscoding Recommended value: default value: 2 (in seconds). Value range: [1,8]. |
videoHeight | Field description: specify the target resolution (height) of On-Cloud MixTranscoding Recommended value: 640 px. If you only mix audio streams, please set both width and height to 0; otherwise, there will be a black background in the live stream after mixtranscoding. |
videoSeiParams | Field description: SEI parameters. default value: null Note the parameter is passed in the form of a JSON string. Here is an example to use it: The currently supported fields and their meanings are as follows: payloadContent: Required. The payload content of the passthrough SEI, which cannot be empty. payloadType: Required. The type of the SEI message, with a value range of 5 or an integer within the range of [100, 254] (excluding 244, which is an internally defined timestamp SEI). payloadUuid: Required when payloadType is 5, and ignored in other cases. The value must be a 32-digit hexadecimal number. interval: Optional, default is 1000. The sending interval of the SEI, in milliseconds. followIdr: Optional, default is false. When this value is true, the SEI will be ensured to be carried when sending a key frame, otherwise it is not guaranteed. |
videoWidth | Field description: specify the target resolution (width) of On-Cloud MixTranscoding Recommended value: 360 px. If you only mix audio streams, please set both width and height to 0; otherwise, there will be a black background in the live stream after mixtranscoding. |