Skip to content

Latest commit

 

History

History
69 lines (50 loc) · 1.78 KB

README.md

File metadata and controls

69 lines (50 loc) · 1.78 KB

Axinom DRM Proxy Mode

License Node.js Version NPM Version

Description

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.

Table of Contents

Installation

# Clone the repository
https://github.com/COUNTZERO-DEV/drm-proxy.git

# Navigate to the project directory
cd drm-proxy

# Install dependencies
npm install

Configuration

  • Rename .env.template to .env and add values
  • Add entries to videos.json in below format
{
		"id": "",
		"keys": [
			{
				"keyId": ""
			},
			{
				"keyId": ""
			},
			{
				"keyId": ""
			}
		]
	}
  • Update the manifestUri and id 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'

Usage

  • Run web server
npm run start