Skip to content

Commit

Permalink
Release 3.7.6
Browse files Browse the repository at this point in the history
- 重构亮度和音量控制器
  • Loading branch information
changsanjiang committed Nov 2, 2022
1 parent f80eec5 commit 91c6812
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 0 additions & 6 deletions SJBaseVideoPlayer/Common/Implements/SJFitOnScreenManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,6 @@ - (void)setFitOnScreen:(BOOL)fitOnScreen animated:(BOOL)animated completionHandl
if ( fitOnScreen ) {
UIViewController *top = [self topMostController];
if ( !animated ) [self _presentedAnimationWithDuration:0 completionHandler:nil];
if (@available(iOS 16.0, *)) {

} else {
// 16以下的系统, 如果当前界面是横屏,fitOn后是竖屏问题
self.viewController.modalPresentationStyle = UIModalPresentationFullScreen;
}
[top presentViewController:self.viewController animated:animated completion:^{
if ( completionHandler ) completionHandler(self);
}];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@ @implementation SJModalPresentationHandler
- (void)setModalViewController:(nullable UIViewController *)modalViewController {
_modalViewController = modalViewController;
modalViewController.transitioningDelegate = self;
modalViewController.modalPresentationStyle = UIModalPresentationCustom;
if (@available(iOS 16.0, *)) {
modalViewController.modalPresentationStyle = UIModalPresentationCustom;
} else {
// https://github.com/changsanjiang/SJBaseVideoPlayer/pull/36
// 16以下的系统, 如果当前界面是横屏,fitOn后是竖屏问题
modalViewController.modalPresentationStyle = UIModalPresentationFullScreen;
}
}

- (NSTimeInterval)transitionDuration:(nullable id<UIViewControllerContextTransitioning>)transitionContext {
Expand Down

0 comments on commit 91c6812

Please sign in to comment.