resume method

Future<int?> resume(
  1. int effectId
)

@detail api @brief Resumes the playback of audio effect files. @param effectId Audio effect ID @return - 0: Success. - < 0 : Fail. See ReturnStatus{@link #ReturnStatus} for more details. @note After calling the pause{@link #IAudioEffectPlayer#pause} API to pause the audio effect file, you can resume playback by calling this API.

Implementation

Future<int?> resume(int effectId) async {
  $a() => ($instance as $p_a.IAudioEffectPlayer).resume(effectId);
  $i() => ($instance as $p_i.ByteRTCAudioEffectPlayer).resume(effectId);

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