From ea38305793ba0e6b3ce7f1535f699d6eb34414da Mon Sep 17 00:00:00 2001 From: guozhigq Date: Sun, 12 Nov 2023 14:36:22 +0800 Subject: [PATCH 1/3] =?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) { From db5132a568f60f82c38eba407c4bbfc479bda12e Mon Sep 17 00:00:00 2001 From: guozhigq Date: Sun, 12 Nov 2023 15:04:58 +0800 Subject: [PATCH 2/3] =?UTF-8?q?fix:=20app=E5=90=8E=E5=8F=B0=E6=97=B6?= =?UTF-8?q?=E8=87=AA=E5=8A=A8pip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/video/detail/view.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/pages/video/detail/view.dart b/lib/pages/video/detail/view.dart index 21695e9e..d67f9b66 100644 --- a/lib/pages/video/detail/view.dart +++ b/lib/pages/video/detail/view.dart @@ -218,7 +218,10 @@ class _VideoDetailPageState extends State @override void didChangeAppLifecycleState(AppLifecycleState lifecycleState) { - if (lifecycleState == AppLifecycleState.inactive && autoPiP) { + var routePath = Get.currentRoute; + if (lifecycleState == AppLifecycleState.inactive && + autoPiP && + routePath.startsWith('/video')) { floating.enable( aspectRatio: Rational( videoDetailController.data.dash!.video!.first.width!, From 56b754e8d1cdd33a60538d422135fceccc254f61 Mon Sep 17 00:00:00 2001 From: guozhigq Date: Sun, 12 Nov 2023 16:26:41 +0800 Subject: [PATCH 3/3] =?UTF-8?q?fix:=20iOS=E7=AB=AF=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E5=A3=B0=E9=9F=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/plugin/pl_player/controller.dart | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/plugin/pl_player/controller.dart b/lib/plugin/pl_player/controller.dart index c267d65f..17f461ac 100644 --- a/lib/plugin/pl_player/controller.dart +++ b/lib/plugin/pl_player/controller.dart @@ -1,6 +1,7 @@ // ignore_for_file: avoid_print import 'dart:async'; +import 'dart:io'; import 'dart:typed_data'; import 'package:easy_debounce/easy_throttle.dart'; @@ -380,8 +381,10 @@ class PlPlayerController { // 解除倍速限制 await pp.setProperty("af", "scaletempo2=max-speed=8"); // 音量不一致 - await pp.setProperty("volume-max", "100"); - await pp.setProperty("ao", "audiotrack,opensles"); + if (Platform.isAndroid) { + await pp.setProperty("volume-max", "100"); + await pp.setProperty("ao", "audiotrack,opensles"); + } // 音轨 if (dataSource.audioSource != '' && dataSource.audioSource != null) {