mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-08-02 17:18:36 +02:00
feat(player): add repeat off/all/one modes
The internal player handles setRepeatMode: repeat-one replays the current track, repeat-all wraps the queue (and keeps a single-track shuffle queue alive). The mode is broadcast in playback state, persisted with the playback session, and toggleable from the Now Playing transport row and the up-next sheet; a small shuffle toggle joins the transport row for symmetry.
This commit is contained in:
@@ -102,6 +102,9 @@ class MusicPlayerController {
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> setRepeatMode(AudioServiceRepeatMode mode) async =>
|
||||
_handler?.setRepeatMode(mode);
|
||||
|
||||
Future<void> playNext(PlayableMedia item) async =>
|
||||
(await ensureInitialized())?.enqueue(item, playNext: true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user