releasePlayer method
Implementation
Future<void> releasePlayer() async {
if (player.isPlaying) {
await player.stopPlayer();
}
await player.closePlayer();
}
Future<void> releasePlayer() async {
if (player.isPlaying) {
await player.stopPlayer();
}
await player.closePlayer();
}