From 8c02a566f62dfdc3b31fc1cc63277151f8d43d49 Mon Sep 17 00:00:00 2001 From: guozhigq Date: Thu, 7 Sep 2023 22:56:52 +0800 Subject: [PATCH] =?UTF-8?q?mod:=20=E8=BF=98=E5=8E=9F=E9=9F=B3=E8=BD=A8?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E6=96=B9=E5=BC=8F=EF=BC=88=E6=9F=90=E4=BA=9B?= =?UTF-8?q?=E8=B5=84=E6=BA=90=E6=97=A0=E5=A3=B0=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/plugin/pl_player/controller.dart | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/plugin/pl_player/controller.dart b/lib/plugin/pl_player/controller.dart index 82c4c1fb..7f203b95 100644 --- a/lib/plugin/pl_player/controller.dart +++ b/lib/plugin/pl_player/controller.dart @@ -353,14 +353,14 @@ class PlPlayerController { var pp = player.platform as NativePlayer; // 音轨 - // if (dataSource.audioSource != '' && dataSource.audioSource != null) { - // await pp.setProperty( - // 'audio-files', - // UniversalPlatform.isWindows - // ? dataSource.audioSource!.replaceAll(';', '\\;') - // : dataSource.audioSource!.replaceAll(':', '\\:'), - // ); - // } + if (dataSource.audioSource != '' && dataSource.audioSource != null) { + await pp.setProperty( + 'audio-files', + UniversalPlatform.isWindows + ? dataSource.audioSource!.replaceAll(';', '\\;') + : dataSource.audioSource!.replaceAll(':', '\\:'), + ); + } // 字幕 if (dataSource.subFiles != '' && dataSource.subFiles != null) { @@ -399,9 +399,9 @@ class PlPlayerController { play: false, ); // 音轨 - player.setAudioTrack( - AudioTrack.uri(dataSource.audioSource!), - ); + // player.setAudioTrack( + // AudioTrack.uri(dataSource.audioSource!), + // ); return player; }