For us, we had two issues.
Nr 1: we were always using the same contentId for different assets.
Nr 2: We forgot to implement the AVContentKeySessionDelegate function:
public func contentKeySession(_ session: AVContentKeySession, didUpdatePersistableContentKey persistableContentKey: Data, forContentKeyIdentifier keyIdentifier: Any)
So, when you have both a storageDuration & playbackDuration, your CKC will get updated once it starts playing the first time. You should capture that by implementing the function above and overwriting the currently persistent key.
Hope this helps anyone
Post
Replies
Boosts
Views
Activity
Did you had the exact same issue as the OP? We are facing the exact same issue (download 2 assets, only the last asset will play offline) and are trying to figure out the cause. Maybe you could point us into the right direction?We are pretty sure that the offline content identifier is the correct one as it is playable offline, it only fails if you download a second asset.