How to know that playback failure is due to expired Fairplay key?

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.

Replies

I'm also looking for this error, neither AVPlayer status or AVPlayerItem status is failed...


Apple do you have a solution ?