seekTo method

Future<void> seekTo(
  1. int progress
)

Moves the media to specified time(milliseconds) position.

Minimum Android O is required to use this function otherwise nothing happens.

Implementation

Future<void> seekTo(int progress) async {
  if (progress < 0 || _playerState.isStopped) return;

  await AudioWaveformsInterface.instance.seekTo(playerKey, progress);
}