Skip to content

Commit

Permalink
Merge branch 'release/6.1.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
pyby committed Jan 6, 2021
2 parents 86d55f9 + 516ebc2 commit 7ba6b8f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Demo/Demo.xcconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Version information
MARKETING_VERSION = 6.1.1
MARKETING_VERSION = 6.1.2

// Deployment targets
IPHONEOS_DEPLOYMENT_TARGET = 9.0
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import PackageDescription

struct ProjectSettings {
static let marketingVersion: String = "6.1.1"
static let marketingVersion: String = "6.1.2"
}

let package = Package(
Expand Down
12 changes: 6 additions & 6 deletions Sources/SRGMediaPlayer/SRGPictureInPictureFix.m
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ - (void)applicationDidBecomeActive:(NSNotification *)notification
// Somehow Apple manages to circumvent this issue internally with `AVPlayerViewController` which, if
// displayed once, ensures proper behavior afterwards.
SRGDummyPlayerViewController *playerViewController = [[SRGDummyPlayerViewController alloc] init];
playerViewController.modalPresentationStyle = UIModalPresentationOverCurrentContext;
playerViewController.definesPresentationContext = NO;
playerViewController.player = [AVPlayer new];

UIViewController *rootViewController = UIApplication.sharedApplication.keyWindow.rootViewController;
[rootViewController presentViewController:playerViewController animated:NO completion:^{
[rootViewController dismissViewControllerAnimated:NO completion:nil];
}];
UIView *playerView = playerViewController.view;
UIWindow *keyWindow = UIApplication.sharedApplication.keyWindow;
[keyWindow addSubview:playerView];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[playerView removeFromSuperview];
});
});
}

Expand Down

0 comments on commit 7ba6b8f

Please sign in to comment.