BMPWidevineConfiguration

Objective-C


@interface BMPWidevineConfiguration : BMPDRMConfiguration

Swift

class WidevineConfiguration : DRMConfiguration

Represents a Widevine DRM configuration.

  • A dictionary to specify custom HTTP headers for the license request.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSDictionary<NSString *, NSString *> *_Nonnull licenseRequestHeaders;

    Swift

    var licenseRequestHeaders: [String : String] { get set }
  • Specifies how long in milliseconds should be waited before a license request should be retried. Default is 0.

    Declaration

    Objective-C

    @property (nonatomic) NSUInteger licenseRequestRetryDelay;

    Swift

    var licenseRequestRetryDelay: UInt { get set }
  • Specifies how often a license request should be retried if it was not successful (e.g. the license server was not reachable). Default is 1. Assigning 0 disables retries.

    Declaration

    Objective-C

    @property (nonatomic) NSUInteger maxLicenseRequestRetries;

    Swift

    var maxLicenseRequestRetries: UInt { get set }
  • A JSON String which allows to specify configuration options of the DRM key system, such as distinctiveIdentifier or persistentState.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) NSString *mediaKeySystemConfig;

    Swift

    var mediaKeySystemConfig: String? { get set }
  • Creates a new BMPWidevineConfiguration based on the given license URL.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithLicenseUrl:(nullable NSURL *)licenseUrl;

    Swift

    init(license licenseUrl: URL?)

    Parameters

    licenseUrl

    The URL to the license server.

    Return Value

    A new Widevine configuration initialized with the given license URL.