TRTC_TranscodingConfigMode_Template_PresetLayout property Null safety
final
Preset layout mode, where the layout of each channel of image is arranged in advance through placeholders.
In this mode, you still need to set the mixUsers parameter, but you can set userId as a placeholder. Placeholder values include:
- "$PLACE_HOLDER_REMOTE$": image of remote user. Multiple images can be set.
- "$PLACE_HOLDER_LOCAL_MAIN$": local camera image. Only one image can be set.
- "$PLACE_HOLDER_LOCAL_SUB$": local screen sharing image. Only one image can be set.
However, you don't need to listen on the
onUserVideoAvailable()andonUserAudioAvailable()callbacks inTRTCCloudDelegateto make real-time adjustments. Instead, you only need to callsetMixTranscodingConfig()once after successful room entry. Then, the SDK will automatically populate the placeholders you set with realuserIdvalues.
Implementation
static final int TRTC_TranscodingConfigMode_Template_PresetLayout = 3;