MultiplatformDRMConfiguration

@objc(THEOplayerMultiplatformDRMConfiguration)
public class MultiplatformDRMConfiguration : NSObject, DRMConfiguration
extension MultiplatformDRMConfiguration: DRMConfiguration_Objc

A set of DRM parameters.

  • The identifier for the kind of integration

    Declaration

    Swift

    @objc
    public let integrationKind: DRMIntegration
  • Parameters that can be used when MultiplatformDRMConfiguration/integrationKind is set to DRMIntegration/custom

    Declaration

    Swift

    @objc
    public let integrationParameters: Dictionary<String, Any>?
  • The identifier for the kind of integration when MultiplatformDRMConfiguration/integrationKind is set to DRMIntegration/custom

    Declaration

    Swift

    @objc
    public let customIntegrationId: String?
  • A set of configurations for different key systems.

    Declaration

    Swift

    @objc
    public let keySystemConfigurations: KeySystemConfigurationCollection
  • Create a DRM configuration without an integration.

    Declaration

    Swift

    @objc
    public convenience init(keySystemConfigurations: KeySystemConfigurationCollection)

    Parameters

    keySystemConfigurations

    the configurations for one or more key systems

  • Create a config for a custom DRM integration.

    Declaration

    Swift

    @objc
    public init(
        customIntegrationId: String,
        integrationParameters: Dictionary<String, Any> = [:],
        keySystemConfigurations: KeySystemConfigurationCollection
    )

    Parameters

    customIntegrationId

    the identifier for the custom integration

    integrationParameters

    parameters that belong to the custom integration

    keySystemConfigurations

    the configurations for one or more key systems

  • Declaration

    Swift

    public required init(from decoder: Decoder) throws
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws
  • Declaration

    Swift

    public var integration: DRMIntegration? { get }
  • Declaration

    Swift

    public var headers: [[String : String]]? { get }
  • Declaration

    Swift

    public var integration_Objc: DRMIntegration { get }