releasePlayer method

Future<void> releasePlayer()

Implementation

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