Posts

Post not yet marked as solved
3 Replies
1.8k Views
I've recently added in the ability to allow for offline playback of my Fairplay enabled videos.It works great. I can view my offline video on my iPhone just fine. I'm persisting my content key locally, and am able to use it to playback my video.If I *don't* download my video - just stream it normally, I can play that video on my AppleTV with Airplay. All good.Where this breaks is when I'm trying to play back Offline FPS content using Airplay. It plays just fine on my phone, but as soon as I turn on Airplay, playback stops immediately.My AVAssetResourceLoaderDelegate gets called, and I can see that I'm returing the same data (my persisted content-key data stored on my phone), the same as I do when I'm just playing the video on my phone. But playback halts.So, in short, I can do this:- Airplay streamed FPS content to AppleTV- Download that same FPS content and watch it on my phone. - by persisting content-key data about that video.But I can't- Airplay my downloaded, offline, FPS content. That immediately fails.
Posted
by dmorrow.
Last updated
.
Post not yet marked as solved
1 Replies
1.1k Views
When playing protected video, I'm using a license that expires after a certain duration.It works well, playback stops once the license expires.I don't know how to be notified about this error. The AVPlayer.error isn't set. Delegate routines in AVContentKeySession aren't called.I'm assuming that there must be some kind of message that gets sent when playback ends due to licensing, but I haven't figured it out yet.
Posted
by dmorrow.
Last updated
.