Skip to content

Commit

Permalink
feat: 兼容自动缩放
Browse files Browse the repository at this point in the history
  • Loading branch information
orz12 committed Nov 3, 2024
1 parent a9a0d5d commit c27a4e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
4 changes: 1 addition & 3 deletions lib/plugin/pl_player/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -681,9 +681,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
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,
),
),
Expand Down
14 changes: 5 additions & 9 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c27a4e9

Please sign in to comment.