feat(player): continue playback with Library autoplay

This commit is contained in:
zarzet committed 2026-09-27 11:53:40 +07:00
1 parent 9e4f24ba24
commit 5f0463a7a4
14 files changed
+643 -12

No files matched your search

+2
View File
@@ -244,6 +244,7 @@ PlayableMedia playableFromHistory(DownloadHistoryItem item) {
bitrate: item.bitrate,
format: item.format,
explicit: item.explicit,
genre: item.genre,
);
}
@@ -270,5 +271,6 @@ PlayableMedia playableFromLocal(LocalLibraryItem item) {
bitrate: item.bitrate,
format: item.format,
explicit: item.explicit,
genre: item.genre,
);
}
+5
View File
@@ -556,6 +556,11 @@ class SettingsNotifier extends Notifier<AppSettings> {
_saveSettings();
}
void setAutoplay(bool enabled) {
state = state.copyWith(autoplay: enabled);
_saveSettings();
}
void setEmbedMetadata(bool enabled) {
state = state.copyWith(embedMetadata: enabled);
_saveSettings();