fix: set correct initial index in play

This commit is contained in:
Matyáš Caras 2024-05-28 18:47:01 +02:00
parent 052f89890b
commit 35b6d042f9
Signed by: hernik
GPG key ID: 2A3175F98820C5C6

View file

@ -182,7 +182,7 @@ class AudioPlayerService {
); );
await _player.setAudioSource( await _player.setAudioSource(
_queue, _queue,
initialIndex: queuePast.isEmpty ? 0 : queuePast.length - 1, initialIndex: queuePast.length,
initialPosition: Duration.zero, initialPosition: Duration.zero,
); );