fix player fullscreen controls and episode picker

This commit is contained in:
ngfchl
2026-07-18 18:08:41 +08:00
parent 64cb2a3fcd
commit bee146ec05
2 changed files with 136 additions and 86 deletions
+9 -1
View File
@@ -447,7 +447,15 @@ class _MediaLibraryPageState extends ConsumerState<MediaLibraryPage> {
onBack: () => setState(() => _detailWork = null),
onDownload: (item) =>
ref.read(fileProvider.notifier).downloadFile(item.file),
onPlay: (item) => unawaited(showMediaPlayerDialog(context, item.file)),
onPlay: (item) => unawaited(
showMediaPlayerDialog(
context,
item.file,
episodeCandidates: (current ?? _detailWork!).resources
.map((resource) => resource.file)
.toList(),
),
),
onExternalPlay: (item) => showShadDialog(
context: context,
builder: (_) => ExternalPlayerDialog(file: item.file),