SRGMediaPlayer-iOS v5.0.3 Release NotesRelease Date: 2020-09-19 // over 2 years ago
🚀 Apple took us by surprise this year. We had reported an iOS 14 regression (player leak due to PiP changes in iOS 14), but this bug was not addressed and iOS 14 released. As a result, playing a video on iOS 14 with
SRGMediaPlayerControlleris internally leaking an
AVPlayerinstance for reasons outside our control.
🚀 This release provides a workaround for this issue until we can discuss with Apple about it (if we ever can). It first internally presents an invisible
AVPlayerViewControllerinstance, which magically fixes the issue.
👍 About Xcode 12 support
🚀 A proper iOS / tvOS 14 release will be made later. Until then, we recommend you ship your application with Xcode 11.7 if you can. The library can be compiled with Xcode 12 but has not been fully tested yet.
🚀 If you still intend to use Xcode 12, note there is an issue with Carthage with a workaround available. The next official release we will deliver will support Xcode 12 and replace Carthage with SPM.
👍 iOS 14 breaks background video playback support. This is either desired behavior or a regression. Until we know more the API will be kept as is but will not produce the expected behavior (video playback is paused when transitioning to the background, even if the player layer is detached).
🚀 Finally, note that picture in picture is not working for tvOS 14 yet. This feature is planned for a later release.