From 3f50aab12d549ba2e4993cef3fecd5df6e554901 Mon Sep 17 00:00:00 2001 From: guozhigq Date: Sun, 24 Sep 2023 00:47:45 +0800 Subject: [PATCH] =?UTF-8?q?mod:=20=E5=85=B3=E9=97=AD=E5=BC=B9=E5=B9=95?= =?UTF-8?q?=E6=97=B6=E5=81=9C=E6=AD=A2=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/danmaku/view.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pages/danmaku/view.dart b/lib/pages/danmaku/view.dart index 5a5d8a11..ae699b1c 100644 --- a/lib/pages/danmaku/view.dart +++ b/lib/pages/danmaku/view.dart @@ -86,6 +86,9 @@ class _PlDanmakuState extends State { _controller!.onResume(); danmuPlayStatus = true; } + if (!playerController.isOpenDanmu.value) { + return; + } PlDanmakuController ctr = _plDanmakuController; int currentPosition = position.inMilliseconds; blockTypes = playerController.blockTypes; @@ -98,9 +101,6 @@ class _PlDanmakuState extends State { ctr.queryDanmaku(); }); } - if (!playerController.isOpenDanmu.value) { - return; - } // 超出分段数返回 if (ctr.currentSegIndex >= ctr.dmSegList.length) { return;