feat(app): 播放器增加清晰度档位入口

This commit is contained in:
Zhou Weidong committed 2026-10-20 04:37:42 +08:00
1 parent 30a5fa0776
commit 2b2b7e9913
9 files changed
+242 -1

No files matched your search

+3
View File
@@ -72,6 +72,7 @@ class PlayerLogic extends ChangeNotifier {
PlayTicket? blockedTicket;
String? blockedEpisodeId;
List<Episode> sessionEpisodes = const [];
List<String> qualities = const [];
int pageRequest = 0;
bool muted = false;
double playbackSpeed = 1.0;
@@ -217,6 +218,7 @@ class PlayerLogic extends ChangeNotifier {
if (localPath != null) {
blockedTicket = null;
blockedEpisodeId = null;
qualities = const [];
sessionEpisodes[index] = episode.withVideoUrl(_fileUrl(localPath));
return true;
}
@@ -227,6 +229,7 @@ class PlayerLogic extends ChangeNotifier {
if (request != pageRequest) return false;
blockedTicket = null;
blockedEpisodeId = null;
qualities = ticket.qualities;
if (ticket.accessible && ticket.playUrl.isNotEmpty) {
// 签名地址原样写回,不做任何拼接/改写(AppConfig.mediaUrl 只补 host)
sessionEpisodes[index] = episode.withVideoUrl(ticket.playUrl);