enableAudioDecoding method

Future enableAudioDecoding(
  1. bool enable
)

@hidden for internal use only @region custom audio acquisition rendering @brief whether to use sdk audio decoding. @param enable whether to use audio decoding.
。 - true: audio decoding is turned on.(default) - false: audio decoding is turned off. @note - use before registerRemoteEncodedAudioFrameObserver.

Implementation

Future enableAudioDecoding(bool enable) async {
  $a() => ($instance as $p_a.RTCEngine).enableAudioDecoding(enable);
  $i() => ($instance as $p_i.ByteRTCEngine).enableAudioDecoding(enable);

  if (Platform.isAndroid) {
    return $a();
  } else if (Platform.isIOS) {
    return $i();
  } else {
    throw UnsupportedError(
        'Not Support Platform ${Platform.operatingSystem}');
  }
}