OTVDRMManager


@interface OTVDRMManager : NSObject

The OTVDRMManager class sets up an instance of DRM based upon OTVLicenseDelegate.

  • Declaration

    Objective-C

    @property (nonatomic, class, readonly, strong) OTVDRMManager * _Nonnull shared
  • Set the license delegate for OTVDRMManager based on OTVLicenseDelegate. note: The delegate is held using a zeroing-weak reference, so it have a value of nil after it has been deallocated outside. Ensure the delegate is retained until it is not need by player. \param delegate An instance of OTVLicenseDelegate.

    Declaration

    Objective-C

    - (void)setLicenseDelegate:(id<OTVLicenseDelegate> _Nonnull)delegate;
  • Declaration

    Objective-C

    - (void)requestLicenseWithIdentifier:(NSString * _Nonnull)identifier license:(NSDictionary<NSString *, id> * _Nullable)options;
  • Declaration

    Objective-C

    - (BOOL)eraseOfflineLicenseWithIdentifier:(NSString * _Nonnull)identifier SWIFT_WARN_UNUSED_RESULT;