stopAudio method
停止播放
Implementation
Future<void> stopAudio() async {
try {
await _audioPlayer.stop();
_currentPlayingPath = null;
print('音频播放停止');
} catch (e) {
print('停止音频失败: $e');
}
}
停止播放
Future<void> stopAudio() async {
try {
await _audioPlayer.stop();
_currentPlayingPath = null;
print('音频播放停止');
} catch (e) {
print('停止音频失败: $e');
}
}