pausePlayer method

Future<void> pausePlayer()

Pause the current playback.

An exception is thrown if the player is not in the "playing" state.

Example:

await myPlayer.pausePlayer();

Implementation

Future<void> pausePlayer() async {
  _logger.d('FS:---> pausePlayer ');
  await _lock.synchronized(() async {
    await _pausePlayer();
  });
  _logger.d('FS:<--- pausePlayer ');
}