From ea38305793ba0e6b3ce7f1535f699d6eb34414da Mon Sep 17 00:00:00 2001 From: guozhigq Date: Sun, 12 Nov 2023 14:36:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=9B=B4=E6=92=AD=E5=80=8D=E9=80=9F?= =?UTF-8?q?=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/plugin/pl_player/controller.dart | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/plugin/pl_player/controller.dart b/lib/plugin/pl_player/controller.dart index 4d4d1a9b..c267d65f 100644 --- a/lib/plugin/pl_player/controller.dart +++ b/lib/plugin/pl_player/controller.dart @@ -443,10 +443,14 @@ class PlPlayerController { Duration seekTo = Duration.zero, }) async { // 设置倍速 - if (_playbackSpeed.value != 1.0) { - await setPlaybackSpeed(_playbackSpeed.value); - } else { + if (videoType.value == 'live') { await setPlaybackSpeed(1.0); + } else { + if (_playbackSpeed.value != 1.0) { + await setPlaybackSpeed(_playbackSpeed.value); + } else { + await setPlaybackSpeed(1.0); + } } getVideoFit(); // if (_looping) {