From c27a4e96d7b368b8ccb5177a8c131802361ca53c Mon Sep 17 00:00:00 2001 From: orz12 Date: Mon, 4 Nov 2024 07:48:43 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=85=BC=E5=AE=B9=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E7=BC=A9=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/plugin/pl_player/view.dart | 4 +--- pubspec.yaml | 14 +++++--------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/lib/plugin/pl_player/view.dart b/lib/plugin/pl_player/view.dart index 75d79e85..22854cc8 100644 --- a/lib/plugin/pl_player/view.dart +++ b/lib/plugin/pl_player/view.dart @@ -681,9 +681,7 @@ class _PLVideoPlayerState extends State resumeUponEnteringForegroundMode: true, // 字幕尺寸调节 subtitleViewConfiguration: SubtitleViewConfiguration( - style: subTitleStyle, - padding: const EdgeInsets.all(24.0), - textScaleFactor: MediaQuery.textScaleFactorOf(context)), + style: subTitleStyle, padding: const EdgeInsets.all(24.0)), fit: _.videoFit.value, ), ), diff --git a/pubspec.yaml b/pubspec.yaml index f3a3228a..14ed9f88 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -91,19 +91,15 @@ dependencies: # 视频播放器 media_kit: git: - url: https://github.com/orz12/media-kit.git - ref: master + url: https://github.com/media-kit/media-kit.git + ref: main path: media_kit media_kit_video: git: - url: https://github.com/orz12/media-kit.git - ref: master + url: https://github.com/media-kit/media-kit.git + ref: main path: media_kit_video - media_kit_libs_video: - git: - url: https://github.com/orz12/media-kit.git - ref: master - path: media_kit_libs_video + media_kit_libs_video: ^1.0.5 # 媒体通知 audio_service: ^0.18.15