I’m using flutter_zoom_videosdk v1.11.2 and there seems to be a bug in the code in zoom_videosdk_audio_helper.dart.
subscribe(), unSubscribe(), resetAudioSession() all call startAudio
/// subscribe audio raw data.
/// <br />Return [ZoomVideoSDKError_Success] if the function succeeds. Otherwise, this function returns an error.
@override
Future<String> subscribe() async {
return await methodChannel
.invokeMethod<String>('startAudio')
.then<String>((String? value) => value ?? "");
}
/// unsubscribe audio raw data
/// <br />Return [ZoomVideoSDKError_Success] if the function succeeds. Otherwise, this function returns an error.
@override
Future<String> unSubscribe() async {
return await methodChannel
.invokeMethod<String>('startAudio')
.then<String>((String? value) => value ?? "");
}
@override
Future<bool> resetAudioSession() async {
return await methodChannel
.invokeMethod<bool>('startAudio')
.then<bool>((bool? value) => value ?? false);
}