stopAudio method

Future<void> stopAudio()

停止播放

Implementation

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