public protocol CLDrmPrefetcherAPI : InterceptableAPI
API for prefetching and managing persistent DRM keys.
public protocol CLDrmPrefetcherAPI : InterceptableAPI
API for prefetching and managing persistent DRM keys.
Checks if the current DRM Instance can prefetch keys for the content received in the player configuration.
Swift
func canPrefetch(_ config: PlayerConfiguration) -> Bool
config
|
Player configuration. |
true if the current DRM Instance can prefetch keys a given player
configuration.
Prefetch all keys for current player configuration.
Swift
func prefetchKeys(_ onComplete: @escaping (PRESTOerror?) -> Void)
onComplete
|
Called on completion. |
Remove all the keys related to the content in current player configuration
Swift
func deleteKeys()
Returns the remaining playback window for a prefetched/offline license, in seconds. Availability depends on DRM backend and license policy.
Swift
func playDurationLeft(_ config: PlayerConfiguration?) -> UInt64?
Returns the remaining storage window for a prefetched/offline license, in seconds. Availability depends on DRM backend and license policy.
Swift
func storageDurationLeft(_ config: PlayerConfiguration?) -> UInt64?
Delete all stored keys and metadata.
Swift
func deleteAllPersistentData()