diff --git a/Swiftfin/Info.plist b/Swiftfin/Info.plist index 8cb51fee..c3c1c17e 100644 --- a/Swiftfin/Info.plist +++ b/Swiftfin/Info.plist @@ -63,6 +63,10 @@ network. UIApplicationSupportsIndirectInputEvents + UIBackgroundModes + + audio + UIFileSharingEnabled UILaunchScreen diff --git a/Swiftfin/Views/VideoPlayer/NativeVideoPlayer.swift b/Swiftfin/Views/VideoPlayer/NativeVideoPlayer.swift index faced9ce..0a3b3949 100644 --- a/Swiftfin/Views/VideoPlayer/NativeVideoPlayer.swift +++ b/Swiftfin/Views/VideoPlayer/NativeVideoPlayer.swift @@ -73,6 +73,9 @@ class UINativeVideoPlayerViewController: AVPlayerViewController { newPlayer.appliesMediaSelectionCriteriaAutomatically = false newPlayer.currentItem?.externalMetadata = createMetadata() + // enable pip + allowsPictureInPicturePlayback = true + rateObserver = newPlayer.observe(\.rate, options: .new) { _, change in guard let newValue = change.newValue else { return }