From d588f329afb5ca43148340791c76872b3ff19c7a Mon Sep 17 00:00:00 2001 From: orz12 Date: Fri, 12 Jul 2024 23:24:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B0=83=E8=8A=82=E8=BF=9B=E5=BA=A6?= =?UTF-8?q?=E6=97=B6=E6=B8=85=E7=A9=BA=E5=BC=B9=E5=B9=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/plugin/pl_player/controller.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/plugin/pl_player/controller.dart b/lib/plugin/pl_player/controller.dart index 03ff24eb..2c4a7ef1 100644 --- a/lib/plugin/pl_player/controller.dart +++ b/lib/plugin/pl_player/controller.dart @@ -806,6 +806,7 @@ class PlPlayerController { /// 拖动进度条调节时,不等待第一帧,防止抖动 await _videoPlayerController?.stream.buffer.first; } + danmakuController?.clear(); await _videoPlayerController?.seek(position); // if (playerStatus.stopped) { // play(); @@ -818,6 +819,7 @@ class PlPlayerController { //_timerForSeek = null; if (duration.value.inSeconds != 0) { await _videoPlayerController?.stream.buffer.first; + danmakuController?.clear(); await _videoPlayerController?.seek(position); // if (playerStatus.status.value == PlayerStatus.paused) { // play();