Suragch
Aug 13, 2021

--

I would expect the following to seek to the beginning of the current track:

_audioplayer.seek(Duration.zero);

However, there is an optional index parameter that you can use to specify the track that you want to seek to:

_audioplayer.seek(Duration.zero, index: 2);

Beyond that I’m not sure why it wasn’t working for you.

--

--

Suragch
Suragch

Written by Suragch

Flutter and Dart developer. Twitter: @suragch1, Email: suragch@suragch.dev

No responses yet