We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb0612c commit 6995096Copy full SHA for 6995096
lib/src/controllers/player_controller.dart
@@ -263,10 +263,9 @@ class PlayerController extends ChangeNotifier {
263
/// Minimum Android [O] is required to use this function
264
/// otherwise nothing happens.
265
Future<void> seekTo(int progress) async {
266
- if (progress < 0) return;
267
- if (_playerState == PlayerState.playing) {
268
- await AudioWaveformsInterface.instance.seekTo(playerKey, progress);
269
- }
+ if (progress < 0 || _playerState.isStopped) return;
+
+ await AudioWaveformsInterface.instance.seekTo(playerKey, progress);
270
}
271
272
/// Release any resources taken by this controller. Disposing this
0 commit comments