OTVCommonLicenseDelegate
@interface OTVCommonLicenseDelegate : NSObject <OTVLicenseDelegate>
OTVCommonLicenceDelegate
is a default implementation of OTVLicenseDelegate
.
-
Creates an instance of
OTVCommonLicenceDelegate
. \param certificateURL URL of certificate file.\param licenseURL URL of license request.
Declaration
Objective-C
- (nonnull instancetype)initWithCertificateURL:(NSURL *_Nonnull)certificateURL licenseURL:(NSURL *_Nonnull)licenseURL;
-
Returns scheme for fairplay “skd”. This function can be override for mutltidrm. More in
OTVLicenseDelegate
.Declaration
Objective-C
- (NSString *_Nullable)scheme;
-
Returns the content identifier. This function can be override for mutltidrm. More in
OTVLicenseDelegate
.Declaration
Objective-C
- (NSData *_Nullable)contentIdentifierWithUrl:(NSURL *_Nonnull)url;
-
Returns the certificate. This function can be override for mutltidrm. More in
OTVLicenseDelegate
.Declaration
Objective-C
- (NSData *_Nullable)certificate;
-
Returns the Content Key Context (CKC) message. This function can be override for mutltidrm. More in
OTVLicenseDelegate
.Declaration
Objective-C
- (NSData *_Nullable)ckcMessageWithSpc:(NSData *_Nonnull)spc;
-
Returns the Content Key Context (CKC) message. This function can be override for mutltidrm. More in
OTVLicenseDelegate
.Declaration
Objective-C
- (NSData *_Nullable)ckcMessageWithIDWithSpc:(NSData *_Nonnull)spc assetID:(NSString *_Nonnull)assetID;
-
Declaration
Objective-C
- (NSData *_Nullable)ckcMessageWithSpc:(NSData *_Nonnull)spc assetID:(NSString *_Nonnull)assetID session:(AVContentKeySession *_Nonnull)session keyRequest: (AVContentKeyRequest *_Nonnull)keyRequest;
-
Returns the license HTTP Request custom headers. This function must be overridden for multidrm. Default returns empty Dictionary. If a nil Dictionary is returned the licence request is not sent. \param assetID client should use passed assetID to generate correctly http headers.
Declaration
Objective-C
- (NSDictionary<NSString *, NSString *> *_Nullable) generateHTTPHeadersWithAssetID:(NSString *_Nonnull)assetID;
-
Declaration
Objective-C
- (NSURL * _Nonnull)getLicenseRequestUrl SWIFT_WARN_UNUSED_RESULT;
-
Declaration
Objective-C
- (NSString * _Nullable)getCkcFromLicenseResponseWithResponse:(NSDictionary<NSString *, id> * _Nonnull)response SWIFT_WARN_UNUSED_RESULT;