Just came across this question. I had to do a lot of searching around for this answer for my own use case. First off Widevine is not officially supported with AVPlayer since it's owned by google, so your only officially supported option is FairPlay.
If you have an apple dev account here's the place where all the FairPlay documentation is. There are some examples in here too.
https://developer.apple.com/streaming/fps/
also I found this article, which has a lot of helpful implementation info:
https://medium.com/@burak.oguz/ios-fairplay-drm-integration-with-different-use-cases-8aff3d4248dd
hope that helps
Post
Replies
Boosts
Views
Activity
Sadly this method no longer works. It was working great in iOS 15 and below, but something must have changed.
I'm having this same issue on iOS 16 the official release. Here's a reference to a ticket I made on a 3rd Party Library about it: https://github.com/LeoNatan/LNPopupUI/issues/18
If anyone else runs into this ^ I found a working solution here: https://developer.apple.com/forums/thread/716310
This is the code that worked in my case:
struct NavStackWorkaround<T: View>: View {
let content: ()->T
var body: some View {
if #available(iOS 16, *) {
NavigationStack(root: content)
} else {
NavigationView(content: content)
.navigationViewStyle(.stack)
}
}
}
Same Problem on Instruments Version 15.0 (15A240d). iPhone 11 Pro 17.0.2