opt: query sponsorblock

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-06 10:36:52 +08:00
parent f3279b4177
commit 5a481dbaaf
3 changed files with 45 additions and 26 deletions

View File

@@ -281,14 +281,14 @@ class _VideoDetailPageState extends State<VideoDetailPage>
/// 未开启自动播放时触发播放
Future<void> handlePlay() async {
if (videoDetailController.isQuerying) {
debugPrint('handlePlay: querying');
return;
}
if (videoDetailController.videoUrl == null ||
videoDetailController.audioUrl == null) {
// SmartDialog.showToast('not initialized');
debugPrint('handlePlay: videoUrl/audioUrl not initialized');
if (videoDetailController.isQuerying.not) {
videoDetailController.autoPlay.value = true;
videoDetailController.queryVideoUrl();
}
videoDetailController.queryVideoUrl();
return;
}
plPlayerController = videoDetailController.plPlayerController;