subscribeAllRemoteAudio method Null safety
- bool subscribe
Subscribe to or unsubscribe from all audio streams. This setting applies to subsequent users that join the room.
subscribe true: Subscribe to all audio stream; false: Unsubscribe from all audio streams
Implementation
Future<int> subscribeAllRemoteAudio(bool subscribe) async {
IntValue reply =
await _api.subscribeAllRemoteAudio(BoolValue()..value = subscribe);
return reply.value ?? -1;
}