pause method
@detail api @brief After calling open{@link #IMediaPlayer#open}, or start{@link #IMediaPlayer#start} to start audio mixing, call this API to pause audio mixing. @return - 0: Success. - < 0 : Fail. See ReturnStatus{@link #ReturnStatus} for more details. @note - After calling this API to pause audio mixing, call resume{@link #IMediaPlayer#resume} to resume audio mixing. - The API is valid for audio file, not PCM data.
Implementation
Future<int?> pause() async {
$a() => ($instance as $p_a.IMediaPlayer).pause();
$i() => ($instance as $p_i.ByteRTCMediaPlayer).pause();
if (Platform.isAndroid) {
return $a();
} else if (Platform.isIOS) {
return $i();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}