JWDRMContentLoader
@objcMembers
public class JWDRMContentLoader : NSObject
This loader is used to interface with FairPlay and decode streams for download.
-
This is the initializer. Designating a key manager is optional, but if one is specified it will receive events for persistable content.
Declaration
Swift
public required init(dataSource: JWDRMContentKeyDataSource, keyManager: JWDRMContentKeyManager?)
Parameters
dataSource
The content key data source for processing licensed content.
keyManager
The content key manager associated with this loader.
-
Loads the supplied items as persistable content.
Declaration
Swift
public func load(items: [JWPlayerItem])
Parameters
items
An array of items to load.
-
Loads content from a JW Platform playlist URL.
Note
Only default the JSON format is supported.Declaration
Swift
public func load(playlist url: URL)
Parameters
url
The URL designating the playlist. This URL must point to a playlist delivered by the JW Platform Delivery API (signed or unsigned).