TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | Commercial |
ReleasedLast Release | Jan 2016 |
Maintained by Gabi Dobocan.
Veeplay provides support for Marlin DRM, using the SDKs provided by ExpressPlay. To install:
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 managerType
property of the APSMediaUnit
object to @"marlin"
.
kAPSMetadataDrmUrl
key in the metadata
dictionary of an item to the string URL to the license file. To configure from JSON, set the drm_encoding_url
metadata key.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"
}
}