Optional
LA_The URL to the Fairplay license server for this content (optional). Can be defined in the configuration or taken out from the video manifest if defined there. If the config URL is defined it has precedence over the URL defined in the manifest.
Optional
certificateAn object which specify custom HTTP headers for the certificate request (optional).
Optional
certificateURLThe URL to the Fairplay certificate of the license server.
Note: either certificateURL
or serverCertificate
is required for Fairplay.
Optional
getA callback function which gets the URI (without the skd:
part) from the HLS manifest passed as parameter.
The function needs to return a string which is used as LA_URL “as is”.
Optional
headersAn object which specify custom HTTP headers for the license request (optional).
Optional
keySpecify the priority of FairPlay DRM key system strings for this source. Non-specified strings which the player knows will be put at the end of the list. The first key system string of this list, which is supported on the current platform is used.
8.143.0
Optional
licenseOptional
maxSpecifies how often a certificate request should be retried if was not successful (e.g. the certificate URL returns a 404). Default is 1. 0 disables retries.
Optional
maxSpecifies how often a license request should be retried if was not successful (e.g. the license server
was not reachable). Default is 1
. 0
disables retries.
Optional
prepareA function to prepare the certificate before passing it into the browser. This is needed if the server response with anything else than the certificate, e.g. if the certificate is wrapped into a JSON object. The server response is passed as parameter “as is” and the return type is expected to be an ArrayBuffer.
Optional
prepareA function to prepare the contentId, which is sent to the Fairplay license server as request body (optional). As many DRM providers expect different, vendor-specific messages, this can be done using this user-defined function. The parameter is the URI extracted from the HLS manifset (m3u8) and the return value should be the contentID as string.
Optional
prepareA function to prepare the license before passing it into the browser. This is needed if the server response with anything else than the license, e.g. if the license is wrapped into a JSON object. The server response is passed as parameter “as is” and the return type is expected to be a Base64-encoded string.
Optional
prepareSimilar to prepareLicense, this callback can be used to prepare the license before passing it to the browser, but the license can be processed asynchronously. Please note that this function must return a promise and the parameter for the resolve function needs to be the Uint8Array, which is passed “as is” to the browser. Using this function prevents prepareLicense from being called.
Optional
prepareA function to prepare the license acquisition message which will be sent to the license acquisition server (optional). As many DRM providers expect different, vendor-specific messages, this can be done using this user-defined function. The first parameter is the key message event object as given by the Fairplay Content Decryption Module (CDM), enhanced by the messageBase64Encoded attribute, which contains the key message encoded as base64 encoded string. The second parameter is the ssion object, enhanced by a contentId attribute.
Optional
serverDefaults to null, e.g., certificate will be requested from the license server if required. A key-system-specific server certificate used to encrypt license requests. Its use is optional and is meant as an optimization to avoid a round-trip to request a certificate.
Note: either certificateURL
or serverCertificate
is required for Fairplay.
7.2
Optional
useA flag to change between Uint8Array
(default, value false
) and Uint16Array
initialization data.
Depends on the fairplay license server, most use Uint8Array
but e.g. EZDRM requires Uint16Array
.
Optional
withSet to true
to send credentials such as cookies or authorization headers along with the license requests.
Default is false
.
EZDRM Specific Example:
DRMtoday by castLabs Specific Example:
Vualto Specific Example (requires Bitmovin Player 6.0+):