stop method

Future<void> stop()

Stops the playback

Throws an Exception if the player is not initialized

Throws an Exception if the playback is not stopped

Stops the playback will drop the queued buffers

Implementation

Future<void> stop() async {
  print('RS:---> stop');

  await _lock.synchronized(() async {
    _ensureInited();

    await _stop();
  });

  print('RS:<--- stop');
}