OTVSSPLicenseDelegate
@interface OTVSSPLicenseDelegate : OTVCommonLicenseDelegate
OTVSSPLicenseDelegate
is a default implementation of SSP with SSM Service.
-
Creates an instance of
OTVSSPLicenceDelegate
. \param certificateURL URL of certificate file.\param licenseURL URL of license request.
\param ssmServerURL Optional URL of SSM service request. Default is nil if SSM service not required.
\param syncSSMSetupTeardown If ssmServerURL is provided this defines whether the setup and teardown network requests block the main thread or not. Default is to block.
Declaration
Objective-C
- (nonnull instancetype)initWithCertificateURL:(NSURL *_Nonnull)certificateURL licenseURL:(NSURL *_Nonnull)licenseURL ssmServerURL:(NSURL *_Nullable)ssmServerURL syncSSMSetupTeardown:(BOOL)syncSSMSetupTeardown;
-
Overrided function to pass HTTP header for license request. It is based on the setStream(token:with:) to generate SSP required headers.
Declaration
Objective-C
- (NSDictionary<NSString *, NSString *> *_Nullable) generateHTTPHeadersWithAssetID:(NSString *_Nonnull)assetID;
-
Set the token and the url which associated with the stream. \param token the stream’s SSP specific media token.
\param url URL of the stream.
\param success closure for when the stream token and url are sucessfully set. Default to empty.
\param failure closure for when the stream token and url fail to be set. Default to empty.
Declaration
Objective-C
- (void)setStreamWithToken:(NSString *_Nonnull)token with:(NSURL *_Nonnull)url success:(void (^_Nonnull)(void))success failure:(void (^_Nonnull)(void))failure;