ZoomVideoSdkAudioHelper's methodChannel destination is not correct ( flutter_zoom_videosdk v1.11.2)

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);
  }

In addition, ZoomVideoSdkAudioHelper’s cleanAudioSession does not return because there is no result in FluterZoomVideoSdkAudioHelper.m

//FlutterZoomVideoSdkAudioHelper.m

-(void) cleanAudioSession: (FlutterResult) result {
    dispatch_async(dispatch_get_main_queue(), ^{
        [[self getAudioHelper] cleanAudioSession];
    });
}

Thanks for this - I will see what we can do to make sure this gets fixed.

1 Like