mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-24 10:08:41 +00:00
opt: video: onreset
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -635,6 +635,9 @@ class VideoDetailController extends GetxController
|
||||
|
||||
Future _querySponsorBlock() async {
|
||||
positionSubscription?.cancel();
|
||||
videoLabel.value = '';
|
||||
segmentList.clear();
|
||||
_segmentProgressList = null;
|
||||
dynamic result = await Request().get(
|
||||
'${GStorage.blockServer}/api/skipSegments',
|
||||
queryParameters: {
|
||||
@@ -643,9 +646,6 @@ class VideoDetailController extends GetxController
|
||||
},
|
||||
options: _options,
|
||||
);
|
||||
videoLabel.value = '';
|
||||
segmentList.clear();
|
||||
_segmentProgressList = null;
|
||||
_handleSBData(result);
|
||||
}
|
||||
|
||||
@@ -1963,4 +1963,26 @@ class VideoDetailController extends GetxController
|
||||
tabCtr.dispose();
|
||||
super.onClose();
|
||||
}
|
||||
|
||||
onReset() {
|
||||
playedTime = null;
|
||||
videoUrl = null;
|
||||
audioUrl = null;
|
||||
|
||||
// danmaku
|
||||
savedDanmaku = null;
|
||||
|
||||
// subtitle
|
||||
vttSubtitlesIndex = null;
|
||||
_vttSubtitles.clear();
|
||||
|
||||
// view point
|
||||
viewPointList.clear();
|
||||
|
||||
// sponsor block
|
||||
positionSubscription?.cancel();
|
||||
videoLabel.value = '';
|
||||
segmentList.clear();
|
||||
_segmentProgressList = null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user