consumeMicStreams method
Starts consuming (subscribing to) this participant’s microphone (audio) streams.
Takes effect only when the room was created with autoConsume: false.
-
Streams are received automatically unless the room was created with
autoConsume: false. Call this to start receiving the participant’s microphone in that case, or again after stopConsumingMicStreams. -
If the participant has an active microphone stream, it will be added to Participant.streams once consumption starts.
This is useful for:
- Selectively subscribing to audio streams
- Reducing bandwidth usage
- Implementing custom pin / focus logic
Implementation
Future<void> consumeMicStreams() async {
await _consumeMicStreams?.call(id);
}