MixedAudioStream
Used to set the source of the audio stream for local audio mixing.
struct MixedAudioStream {
AUDIO_SOURCE_TYPE sourceType;
uid_t remoteUserUid;
const char* channelId;
track_id_t trackId;
};
Properties
- sourceType
- Audio source type. See AUDIO_SOURCE_TYPE.
- remoteUserUid
- Remote user ID.
Note: This parameter must be set when the source type of the local mixed audio stream is
AUDIO_SOURCE_REMOTE_USER. - channelId
-
Note: This parameter must be set when the source type of the local mixed audio stream isChannel name. This parameter indicates the channel where users engage in real-time audio and video interaction. Users with the same App ID and channel name will join the same channel for interaction. The string length must not exceed 64 bytes. Supported characters (89 total):
AUDIO_SOURCE_REMOTE_CHANNELorAUDIO_SOURCE_REMOTE_USER.- All lowercase letters: a to z.
- All uppercase letters: A to Z.
- All numeric characters: 0 to 9.
- Special characters: "!", "#", "$", "%", "&", "(", ")", "+", "-", ":", ";", "<", "=", ".", ">", "?", "@", "[", "]", "^", "_", "{", "}", "|", "~", ","
- trackId
- Audio track ID. Set to the custom audio track ID returned by createCustomAudioTrack.
Note: This parameter must be set when the source type of the local mixed audio stream is
AUDIO_SOURCE_CUSTOM.