pause method
@detail api @brief Pauses 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 start{@link #IAudioEffectPlayer#start} API 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 #IAudioEffectPlayer#resume} API to resume playback.
Implementation
Future<int?> pause(int effectId) async {
$a() => ($instance as $p_a.IAudioEffectPlayer).pause(effectId);
$i() => ($instance as $p_i.ByteRTCAudioEffectPlayer).pause(effectId);
if (Platform.isAndroid) {
return $a();
} else if (Platform.isIOS) {
return $i();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}