Offline HLS with FairPlay?

Hello,


We have been working on FPS for a while and managed to play an encrypted asset with it, using version 2 of FairPlay Streaming Server SDK 2.03.

Now we are working on "Download and Play Offline" functionality.
For this I have downloaded the FairPlay Streaming Server SDK 3.0 and in SDK Folder there is "OfflineHLSGuide_withFPS.pdf" document beside "FairPlayStreaming_PG.pdf" where they tell about how it works and what need to be done.

In that document ("OfflineHLSGuide_withFPS.pdf") there is new version of Content Key Duration TLLV which is slightly different than the structure shown in "FairPlayStreaming_PG.pdf"


For Content Key Duration TLLV (0x47acf6a418cd091a) in "FairPlayStreaming_PG" there is "Lease Duration" between bytes 16-19.

But in the document about OfflineHLSGuide, it says "Reserved" for bytes between 16-19.


Where has LeaseDuration gone for offline?

OR

Should I use one ContentKeyDuration TLLV for non-persist and other version of ContentKeyDuration TLLV for (persist)offline?


Thanks

As "lease" has no effect for offline, you can probably set the duration as well, we just zeroed out the LeaseDuration, as we only needed to set Rental duration. But as noted in Table "Rental and Lease Key Types". The only duration that is interesting for persisting the data is the rental duration.


How would you envision Lease working together with offline?

Thanks for the response.

It makes sense, you are right.


I have another question about persistence flag which is coming from the client.

My colleague who is implementing the IOS client said that he can set a persistence flag to true, but I couldnt find any documentation about how to extract this data from SPC?


Do you have any idea?


Thanks.

If you are referring to AVAssetResourceLoadingRequestStreamingContentKeyRequestRequiresPersistentKey, then I haven't found a way to detect that on the server side.

I haven't either.

you guys figured it out ? if yes can you please share some info about how you can identify if client is requesting offline license

Offline HLS with FairPlay?
 
 
Q