ShouldWaitForLoadingOfRequestedResource not called

Hi,


I've been implementing the client for a customers FairPlay DRM solution, I've tested a test asset in a standalone project and it worked ok. However when integrating with the main solution I've hit some integration issue that I'm having trouble solving.


Standalone Test App and Test FairPlayStream(FPS) - works fine on device and with airplay

Integrated App with Test FPS - only works under some conditions (ie. when I do not perform some business logic network requests when we observe playback has started).

Integrated App with test asset ie. Apple BipBop - works fine on devie and with airplay


The noticible difference on the Integrated App is I do not see ShouldWaitForLoadingOfRequestedResource being called. However I do see the app downloading the m3u8 files for various bitrates and even a ts file.


Is this a bug? Or some obscure known behaviour? Everything from the app is interacting with AVPlayer over the main thread and I've tried setting the queue for the AVUrlAsset.ResourceLoader delegate to MainQueue/GlobalDefaultQueue/NamedQueue none of which had a differing effect.


Any Ideas would be much appreciated.


Thanks.


ineva

To clarify, are you using production keys or not? These can be acquired via the FPS Deployment Package (see <https://developer.apple.com/contact/fps/>). You'll need production keys to attempt playback on the device.

ShouldWaitForLoadingOfRequestedResource not called
 
 
Q