resume method

Future<int?> resume()

@detail api @brief After calling pause{@link #IMediaPlayer#pause} to pause audio mixing, call this API to resume audio mixing. @return - 0: Success. - < 0 : Fail. See ReturnStatus{@link #ReturnStatus} for more details. @note The API is valid for audio file, not PCM data.

Implementation

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

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