PlayReadyConfig

@objcMembers
@objc(BMPPlayReadyConfig)
public final class PlayReadyConfig : DrmConfig, @unchecked Sendable

Represents a PlayReady DRM config.

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

    Declaration

    Swift

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

    Declaration

    Swift

    public var licenseRequestRetryDelay: UInt
  • 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

    Swift

    public var maxLicenseRequestRetries: UInt
  • A JSON string which allows to specify config options of the DRM key system, such as distinctiveIdentifier or persistentState.

    Declaration

    Swift

    public var mediaKeySystemConfig: String?
  • Creates a new PlayReadyConfig based on the given license URL.

    Declaration

    Swift

    @objc(initWithLicenseUrl:)
    public init(license licenseUrl: URL?)

    Parameters

    licenseUrl

    The URL to the license server.

    Return Value

    A new PlayReady config initialized with the given license URL.