MixedAudioStream
The source of the audio streams that are mixed locally.
class MixedAudioStream { const MixedAudioStream( {this.sourceType, this.remoteUserUid, this.channelId, this.trackId}); @JsonKey(name: 'sourceType') final AudioSourceType? sourceType; @JsonKey(name: 'remoteUserUid') final int? remoteUserUid; @JsonKey(name: 'channelId') final String? channelId; @JsonKey(name: 'trackId') final int? trackId; factory MixedAudioStream.fromJson(Map<String, dynamic> json) => _$MixedAudioStreamFromJson(json); Map<String, dynamic> toJson() => _$MixedAudioStreamToJson(this); }
Attributes
- sourceType
- The type of the audio source. See AudioSourceType.
- remoteUserUid
-
The user ID of the remote user.
Attention: Set this parameter if the source type of the locally mixed audio steams is audioSourceRemoteUser. - channelId
-
The channel name. This parameter signifies the channel in which users engage in real-time audio and video interaction. Under the premise of the same App ID, users who fill in the same channel ID enter the same channel for audio and video interaction. The string length must be less than 64 bytes. Supported characters (89 characters in total):
- All lowercase English letters: a to z.
- All uppercase English letters: A to Z.
- All numeric characters: 0 to 9.
- "!", "#", "$", "%", "&", "(", ")", "+", "-", ":", ";", "<", "=", ".", ">", "?", "@", "[", "]", "^", "_", "{", "}", "|", "~", ","
Attention: Set this parameter if the source type of the locally mixed audio streams is audioSourceRemoteChannel or audioSourceRemoteUser. - trackId
-
The audio track ID. Set this parameter to the custom audio track ID returned in createCustomAudioTrack.
Attention: Set this parameter if the source type of the locally mixed audio steams is audioSourceCustom.