From 35b6d042f95b09dff6f8764fba0a786bc7aa9b7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maty=C3=A1=C5=A1=20Caras?= Date: Tue, 28 May 2024 18:47:01 +0200 Subject: [PATCH] fix: set correct initial index in play --- lib/api/audio/audioplayer_service.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api/audio/audioplayer_service.dart b/lib/api/audio/audioplayer_service.dart index ca6ab99..d865a62 100644 --- a/lib/api/audio/audioplayer_service.dart +++ b/lib/api/audio/audioplayer_service.dart @@ -182,7 +182,7 @@ class AudioPlayerService { ); await _player.setAudioSource( _queue, - initialIndex: queuePast.isEmpty ? 0 : queuePast.length - 1, + initialIndex: queuePast.length, initialPosition: Duration.zero, );