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
dataSourceThe content key data source for processing licensed content.
keyManagerThe content key manager associated with this loader.
-
Loads the supplied items as persistable content.
Declaration
Swift
public func load(items: [JWPlayerItem])Parameters
itemsAn 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
urlThe URL designating the playlist. This URL must point to a playlist delivered by the JW Platform Delivery API (signed or unsigned).