For the developer to be able to integrate, they will need to write code for each DRM regime. Different ways in which FairPlay might be incorporated into the Video.js player, Obtain a Certificate or License by Navigating to a Particular URL.
Within the context of this function, the CertificateUri and licenseUri aspects of the keySystems object are required inputs. Additionally necessary are attributes that can be set to be optional, such as certificateHeaders and licenseHeaders. To do this, first a GET request is sent to the certificateUri, and then the contentID is read from the initData that is sent in response. Additionally, a POST request may be used in order to access the licenseUri. The default value for the “Content-type” header field is “application/octet-stream.”
Instructions for obtaining a licence, certificate, or content identifier
This method is used by leading multi-DRM manufacturers such as PallyCon because it enables the Video.js player to receive a licence by employing methods rather than properties for the purpose of getting a certificate, getting a content identifier, and getting a licence. There is support for asynchronous retrieval of certificates, content IDs, and licences.
PlayReady is able to be utilised in the process of setting up the Video.js player.
In order to perform its functions, the plugin makes use of three different keySystems objects. A developer may choose to implement any one of these three strategies.
If the keySystems property of the plugin is set to true, then it will send a POST message to the destinationURI that was specified by the browser. This message will have both a header and a body.
If a developer want to acquire their keys by sending a POST request to a URL with both the headers and the body of the request included, they have two alternatives accessible to them. In addition to that, the licenseHeaders object can be used if necessary.
You can get a key in three different ways: through the message buffer, the destination URI, or through the getKey method. The licence key is then returned by the callback after it has been processed.
Options for configuring the Video.js player while using Widevine
It has been determined that Google’s Widevine is compliant with the EME requirements. The DRMan anti-piracy tool can be implemented by adding a URL field to the keySystems object and adding widevineToken to the licenseHeaders object. Both of these changes are necessary. In the event that a certificate needs to be retrieved, the getCertificate() function, in conjunction with the FairPlay setting, are both viable options.
In addition to the videoCapabilities and audioCapabilities functions, the contentType and robustness functions can be defined for the MediaKeySystemConfiguration object by the EME’s VideoJSContrib EME plugin.
This stage occurs before playback since the content needs to be decrypted before the client can gain access to it for playback. This stage takes place before playback. As a direct result of the digital rights management system, the customer has access to the decryption key for the particular content ID that was utilised throughout the process of encrypting the movie. This access was granted to the customer. This was done with the customer’s privacy in mind in order to protect it (DRM). A specialised piece of software known as the Content Decryption Module, which is more commonly abbreviated as CDM and stands for Content Decryption Module, is something that a user’s device or web browser will typically include as an integrated function. The information that has been received is going to have to be decoded by this component. CDM is already preinstalled on all devices that are compliant with the Encrypted Media Extensions standard. These devices all come with the standard (EME). The player will be able to make use of the decrypted video content once it has been made available to them after the video content has been decoded.