pause method

FutureOr<int> pause()

@detail api @brief After calling open:config:{@link #ByteRTCMediaPlayer#open:config}, or start{@link #ByteRTCMediaPlayer#start} to start audio mixing, call this API to pause audio mixing. @return - 0: Success. - < 0 : Fail. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details. @note

  • After calling this API to pause audio mixing, call resume{@link #ByteRTCMediaPlayer#resume} to resume audio mixing.
  • The API is valid for audio file, not PCM data.

Implementation

FutureOr<int> pause() async {
  return await nativeCall('pause', []);
}