cache season fav state

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-12-19 23:31:08 +08:00
parent 5bcd822251
commit a0f3b3e442
11 changed files with 55 additions and 49 deletions

View File

@@ -1721,7 +1721,9 @@ class PlPlayerController {
disableAutoEnterPip();
setPlayCallBack(null);
dmState.clear();
_clearPreview();
if (showSeekPreview) {
_clearPreview();
}
Utils.channel.setMethodCallHandler(null);
_timer?.cancel();
_timerForSeek?.cancel();
@@ -1744,6 +1746,9 @@ class PlPlayerController {
}
await removeListeners();
subscriptions.clear();
_positionListeners.clear();
_statusListeners.clear();
if (playerStatus.playing) {
WakelockPlus.disable();
}
@@ -1779,7 +1784,7 @@ class PlPlayerController {
);
}
final Map<String, ui.Image?> previewCache = {};
late final Map<String, ui.Image?> previewCache = {};
LoadingState<VideoShotData>? videoShot;
late final RxBool showPreview = false.obs;
late final showSeekPreview = Pref.showSeekPreview;