In the proxy mode, the Entitlement Service acts as a License Service Proxy to the Player (hence the name). The player sends a License Request to the Entitlement Service. Having received the request, Entitlement Service first authorizes it. If access can be granted, it generates an Entitlement Message. Then it forwards the License Request, which it received from the client device, together with the Entitlement Message to the License Service. In response it receives the DRM License and forwards it to the requesting Player. In between, Entitlement Service has another chance to deny the request.
# Clone the repository
https://github.com/COUNTZERO-DEV/drm-proxy.git
# Navigate to the project directory
cd drm-proxy
# Install dependencies
npm install
- Rename .env.template to .env and add values
- Add entries to videos.json in below format
{
"id": "",
"keys": [
{
"keyId": ""
},
{
"keyId": ""
},
{
"keyId": ""
}
]
}
- Update the
manifestUri
andid
parameters in public > index.html
const id = '3af89f70-7b5e-4ece-b12a-87d550661b5a'
const manifestUri =
'https://855a9fc3487ea8637e749dd9.blob.core.windows.net/video-output/6AF6FsgTSeyjQqQdoBp2pt/dash/manifest.mpd'
- Run web server
npm run start
- navigate to http://localhost:3000 to access the player.