seekTo method
Moves the media to specified time position. pass progress parameter in milliseconds.
Minimum Android O
is required to use this funtion otherwise nothing happens.
Implementation
Future<void> seekTo(int progress) async {
if (progress < 0) return;
if (_playerState == PlayerState.playing) {
await AudioWaveformsInterface.instance
.seekTo(_playerKey.toString(), progress);
}
}