OTVDefaultLicenseDelegate
@interface OTVDefaultLicenseDelegate : OTVCommonLicenseDelegate
OTVDefaultLicenseDelegate
is a default implementataion of License request class.
-
Set license HTTP requesting headers \param parameters dictionary of HTTP request headers
Declaration
Objective-C
- (void)setHTTPHeaderWithParameters: (NSDictionary<NSString *, NSString *> *_Nonnull)parameters;
-
Overrided function to pass setted HTTP header for license request. It just return setted http header by call setHTTPHeader remark:
OTVDefaultLicenseDelegate
only support one playback instance. If you want to support multiple playback, inheret fromOTVCommonLicenseDelegate
, override the same function to generate different HTTP header based on assetIDDeclaration
Objective-C
- (NSDictionary<NSString *, NSString *> *_Nullable) generateHTTPHeadersWithAssetID:(NSString *_Nonnull)assetID;
-
Declaration
Objective-C
- (nonnull instancetype)initWithCertificateURL:(NSURL *_Nonnull)certificateURL licenseURL:(NSURL *_Nonnull)licenseURL;