pause method

FutureOr<int> pause(
  1. int effectId
)

@detail api @brief Pauses the playback of audio effect files. @param effectId Audio effect ID @return - 0: Success. - < 0 : Fail. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details. @note - After calling start:filePath:config:{@link #ByteRTCAudioEffectPlayer#start:filePath:config} to start playing the audio effect file, you can pause the audio effect file by calling this API. - After calling this API to pause the audio effect file, you can call the resume:{@link #ByteRTCAudioEffectPlayer#resume} API to resume playback.

Implementation

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