From ab7dd149d3686812bc4667117a4fb704755afec0 Mon Sep 17 00:00:00 2001 From: guozhigq Date: Sun, 22 Oct 2023 09:43:27 +0800 Subject: [PATCH 1/2] =?UTF-8?q?mod:=20=E5=88=87=E6=8D=A2=E8=87=B3=E5=89=8D?= =?UTF-8?q?=E5=8F=B0=E7=BB=A7=E7=BB=AD=E6=92=AD=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/plugin/pl_player/view.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/plugin/pl_player/view.dart b/lib/plugin/pl_player/view.dart index 7fe72dd6..8b8b5780 100644 --- a/lib/plugin/pl_player/view.dart +++ b/lib/plugin/pl_player/view.dart @@ -218,6 +218,7 @@ class _PLVideoPlayerState extends State controller: videoController, controls: NoVideoControls, pauseUponEnteringBackgroundMode: !enableBackgroundPlay, + resumeUponEnteringForegroundMode: true, subtitleViewConfiguration: SubtitleViewConfiguration( style: subTitleStyle, textAlign: TextAlign.center, From 59f7c52611c8e6d0085987ea8e99266dcf220d2c Mon Sep 17 00:00:00 2001 From: guozhigq Date: Sun, 22 Oct 2023 19:19:08 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=E9=9F=B3=E9=87=8F=E4=B8=8D=E4=B8=80?= =?UTF-8?q?=E8=87=B4=E9=97=AE=E9=A2=98?= 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 c5d515a2..5e483f0a 100644 --- a/lib/plugin/pl_player/controller.dart +++ b/lib/plugin/pl_player/controller.dart @@ -382,6 +382,8 @@ class PlPlayerController { var pp = player.platform as NativePlayer; // 解除倍速限制 await pp.setProperty("af", "scaletempo2=max-speed=8"); + // 音量不一致 + await pp.setProperty("audio", "--ao=audiotrack"); // 音轨 if (dataSource.audioSource != '' && dataSource.audioSource != null) { await pp.setProperty(