Cache API
-
The caching API allows to store a streaming source on the user’s device.
See moreDeclaration
Swift
public protocol Cache : AnyObject, EventDispatcherProtocol -
Indicates the status of the
Cache.See moreRemark
CacheStatus.uninitialised: means that previously persisted tasks are not yet available.CacheStatus.initialised: means that previously persisted tasks are available in the tasks property.
Declaration
Swift
@objc(THEOplayerCacheStatus) public enum CacheStatus : Int -
Represents a caching task.
See moreDeclaration
Swift
public protocol CachingTask : EventDispatcherProtocol -
The status of a caching task.
CachingTaskStatus.idle: The task has been created, but has not started downloading content.CachingTaskStatus.loading: The task is currently downloading the content.CachingTaskStatus.done: The task has finished downloading all content.CachingTaskStatus.error: The task has encountered an error while downloading or evicting content.CachingTaskStatus.evicted: All data associated with the task has been removed because the task expired or the user invoked the remove method.
Declaration
Swift
@objc(THEOplayerCachingTaskStatus) public enum CachingTaskStatus : Int -
The configuration of a caching task.
See moreDeclaration
Swift
@objc(THEOplayerCachingParameters) public class CachingParameters : NSObject, Codable -
The caching task license controller which can be used to renew the license.
See moreDeclaration
Swift
public protocol CachingTaskLicense -
Declaration
Swift
@objc(THEOplayerCachingParametersTrackSelection) public class CachingParametersTrackSelection : NSObject, Codable
Cache API Reference