LicenseRequest

@objc(THEOplayerLicenseRequest)
public class LicenseRequest : Request

A license request.

  • The SKD URL

    Remark

    For example (skd://fb64ba7c5bd34bf188cf9ba76ab8370e) as extracted from the #EXT-X-KEY tag in the HLS playlist.

    Declaration

    Swift

    @objc
    public var fairplaySkdUrl: String?
  • Creates a new LicenseRequest for the given URL.

    Declaration

    Swift

    @objc
    public init(url: String, method: String, headers: [String : String], body: Data?, fairplaySkdUrl: String?, useCredentials: Bool)

    Parameters

    url

    The URL of the license or certificate server.

    method

    The method of the HTTP request.

    headers

    The HTTP headers to be sent to the server.

    body

    The body of the request.

    fairplaySkdUrl

    The SKD URL as extracted from the #EXT-X-KEY tag in the HLS playlist.