pause method

Future<void> pause()

Pause the current playback.

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

Example:

await myPlayer.pausePlayer();

Implementation

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