stopAndReinitialize static method
Stops and reinitializes the audio player.
Implementation
static Future<void> stopAndReinitialize() async {
try {
await _audioPlayer.stop();
_audioPlayer.release();
} catch (e) {
if (kDebugMode) {
print('Failed to stop and reinitialize: $e');
}
}
}