Skip to content

Commit

Permalink
fix iOS not display subtitle bug
Browse files Browse the repository at this point in the history
  • Loading branch information
debugly committed Mar 5, 2024
1 parent ef4d3dd commit ded6aa4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions examples/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ EXTERNAL SOURCES:
:path: "../../"

SPEC CHECKSUMS:
IJKMediaPlayerKit: bd05a12295021503205584fb6e81b6c4c8814aa3
IJKMediaPlayerKit: 65b39f55bda0e03320d1fe72ac7824c99f230468

PODFILE CHECKSUM: cd296d63e0523ffeac3abedb895edb14934a2d48

COCOAPODS: 1.13.0
COCOAPODS: 1.15.0
4 changes: 2 additions & 2 deletions examples/macos/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ EXTERNAL SOURCES:
:path: "../../"

SPEC CHECKSUMS:
IJKMediaPlayerKit: 85c0a3ed614353efb6d26f03f5ec2786443575eb
IJKMediaPlayerKit: 65b39f55bda0e03320d1fe72ac7824c99f230468

PODFILE CHECKSUM: f950a6923955cd8172bbcde59a7c414fe1a4ac71

COCOAPODS: 1.13.0
COCOAPODS: 1.15.0
2 changes: 1 addition & 1 deletion ijkmedia/ijksdl/metal/IJKMetalView.m
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ - (float)computeSubtitleExtSacle
- (void)refreshSubtitleExtSacle
{
#if TARGET_OS_IOS
self.backingScaleFactor = self.backingScaleFactor;
self.backingScaleFactor = self.window.contentScaleFactor;
#else
self.backingScaleFactor = self.window.backingScaleFactor;
#endif
Expand Down

0 comments on commit ded6aa4

Please sign in to comment.