SRGMediaPlayer-iOS v5.0.3 Release Notes

Release 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 SRGMediaPlayerController is internally leaking an AVPlayer instance 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 AVPlayerViewController instance, 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.

    Known issues

    ๐Ÿ‘ 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.