DRMConfiguration_Objc

@objc(THEOplayerDRMConfiguration)
public protocol DRMConfiguration_Objc

The DRMConfiguration object provides a set of DRM parameters for DRM streaming.

  • Optionally specifies request headers that should be sent with any license requests to the DRM server. This is a plain object where the keys of the object are header names and corresponding values are header values.

    Declaration

    Swift

    var headers: [[String : String]]? { get }
  • An object of key/value pairs which can be used to pass in specific parameters related to a source into a ContentProtectionIntegration.

    Remark

    • Type of values other than primitive types or Codable will be ignored.
    • When using a Codable object as a value, it will be internally mapped to Dictionary, so when you receive it back in your implementation of ContentProtectionIntegrationFactory, you need to decode it using JSONDecoder().decode(integrationParameters[customObjectKey], CustomObjectClass.self).

    Declaration

    Swift

    var integrationParameters: Dictionary<String, Any>? { get }
  • DRM integration.

    Remark

    Nil if no integration is specified.

    Declaration

    Swift

    @objc(integration)
    var integration_Objc: DRMIntegration { get }
  • The custom integration identifier of the DRM integration.

    Declaration

    Swift

    var customIntegrationId: String? { get }