Add seekToNext/Previous, hasNext/Previous, polish example.

This commit is contained in:
Ryan Heise 2020-08-07 02:41:55 +10:00
parent a494dabcfb
commit 372b4665a5
5 changed files with 184 additions and 74 deletions

View file

@ -62,6 +62,8 @@ await player.load(
],
),
);
player.seekToNext();
player.seekToPrevious();
// Jump to the beginning of track3.mp3.
player.seek(Duration(milliseconds: 0), index: 2);
```