CM(OPYSDKFPS)
@interface AVContentKeySession (SWIFT_EXTENSION(OPYSDKFPS))
/// Prefetch license
/// \param identifier license identifier. Usually comes from playlist. For <em>FairPlay</em>, it should be <code>skd://.....</code>
///
/// \param options key request option. refer <code>OTVDRMManager.Keys.OTVLicenseOptionOffline</code>
///
- (void)requestLicenseWithIdentifier:(NSString * _Nonnull)identifier license:(NSDictionary<NSString *, id> * _Nullable)options;
/// Erase the license persistence on the local storage.
/// \param identifier license identifier. same format when used in <code>requestLicense</code>.
///
///
/// returns:
/// <code>true</code> - the license has successfully been erased from local system.
/// <code>false</code> - the license does not exist.
- (BOOL)eraseOfflineLicenseWithIdentifier:(NSString * _Nonnull)identifier SWIFT_WARN_UNUSED_RESULT;
@end
-
Prefetch license \param identifier license identifier. Usually comes from playlist. For FairPlay, it should be
skd://.....\param options key request option. refer
OTVDRMManager.Keys.OTVLicenseOptionOfflineDeclaration
Objective-C
- (void)requestLicenseWithIdentifier:(NSString *_Nonnull)identifier license:(NSDictionary<NSString *, id> *_Nullable) options; -
Erase the license persistence on the local storage. \param identifier license identifier. same format when used in
requestLicense.returns:
true- the license has successfully been erased from local system.false- the license does not exist.Declaration
Objective-C
- (BOOL)eraseOfflineLicenseWithIdentifier:(NSString *_Nonnull)identifier;
CM(OPYSDKFPS) Category Reference