Optional
certificateA dictionary to specify custom HTTP headers for the certificate request.
Optional
certificateThe URL to the FairPlay Streaming certificate of the license server.
Optional
licenseA dictionary to specify custom HTTP headers for the license request.
The DRM license acquisition URL.
Optional
prepareA block to prepare the loaded certificate before building SPC data and passing it into the system. This is needed if the server responds with anything else than the certificate, e.g. if the certificate is wrapped into a JSON object. The server response for the certificate request is passed as parameter “as is”.
Note that both the passed certificate
data and this block return value should be a Base64
string. So use whatever solution suits you best to handle Base64 in React Native.
Base64 encoded certificate data.
The processed Base64 encoded certificate.
Optional
prepareA block to prepare the contentId
, which is sent to the FairPlay Streaming license server as
request body, and which is used to build the SPC data. As many DRM providers expect different,
vendor-specific messages, this can be done using this user-defined block. The parameter is the
skd:// URI extracted from the HLS manifest (m3u8) and the return value should be the contentID
as string.
Extracted content id string.
The processed contentId.
Optional
prepareA block to prepare the loaded CKC Data before passing it to the system. This is needed if the server responds with anything else than the license, e.g. if the license is wrapped into a JSON object.
Note that both the passed license
data and this block return value should be a Base64 string.
So use whatever solution suits you best to handle Base64 in React Native.
Base64 encoded license data.
The processed Base64 encoded license.
Optional
prepareA block to prepare the URI (without the skd://) from the HLS manifest before passing it to the system.
License server URL string.
The processed license server URL string.
Optional
prepareA block to prepare the data which is sent as the body of the POST license request. As many DRM providers expect different, vendor-specific messages, this can be done using this user-defined block.
Note that both the passed message
data and this block return value should be a Base64 string.
So use whatever solution suits you best to handle Base64 in React Native.
Base64 encoded message data.
Stream asset ID.
The processed Base64 encoded message.
Optional
prepareA block to prepare the data which is sent as the body of the POST request for syncing the DRM license information.
Note that both the passed syncMessage
data and this block return value should be a Base64
string. So use whatever solution suits you best to handle Base64 in React Native.
Asset ID.
The processed Base64 encoded sync message.
Represents a FairPlay Streaming DRM config.