Veeplay Marlin DRM Manager Reference
VeeplayMarlinManager
Veeplay provides support for Marlin DRM, using the SDKs provided by ExpressPlay. To install:
- Install the ExpressPlay SDK.
 Add the following line to your Podfile:
pod "VeeplayMarlinManager"If installing without CocoaPods, get the latest static library and header files from the repository.
Import the VeeplayMarlinManager header file:
#import "VeeplayMarlinManager.h"Instantiate a Marlin manager object and register it with the player:
VeeplayMarlinManager *marlinManager = [[VeeplayMarlinManager alloc] init]; [[APSMediaPlayer sharedInstance] registerUnitManager:marlinManager];Set the
managerTypeproperty of theAPSMediaUnitobject to@"marlin". If doing this programatically, you can also use thekVeeplayMarlinDRMEncodingconstant.- Optionally, to have the player download and add a broadband license to the local store, you can set the 
kAPSMetadataDrmUrlkey in themetadatadictionary of an item to the string URL to the license file. To configure from JSON, set thedrm_encoding_urlmetadata key. 
Example unit configurations
Configuring a unit progamatically:
APSMediaUnit *unit = [[APSMediaUnit alloc] init]; unit.url = [NSURL URLWithString:@"http://url.to/your-protected-media"]; unit.managerType = kVeeplayMarlinDRMEncoding; unit.metadata = [NSMutableDictionary dictionaryWithDictionary: @{ kAPSMetadataDrmUrl: @"http://url.to/marlin-broadband-key" }];Configuring a unit from JSON:
{ "url": "http://url.to/your-protected-media", "manager": "marlin", "metadata": { "drm_encoding_url": "http://url.to/marlin-broadband-key" } }