Description
This repo will demonstrate how to use vudrm with the dash.js. If you have any questions please contact support@vualto.vualto.com
Instructions
Install Dependancies
- Install npm
- Install the grunt-cli:
npm install -g grunt-cli
- Clone the repo:
git clone [email protected]:Vualto/vuplay-dashjs.git
- Navigate to the project's root folder:
cd vuplay-dashjs
- Install the dependancies:
npm install
Build and run the dev environment
Running grunt build
in the project's root will create a dist
folder that contains all the files need to run this demo.
You can run grunt serve
that will run the build task and attempt to load a node.js server at http://dashjs.vuplay.local.drm.technology:14703
- Open the repo in your favourite editor.
- In file
src/vuplay.js
replace<your-stream-url>
with your stream url. This must be a MPEG-DASH stream. - In file
src/vuplay.js
replace<your-vudrm-token>
with a vudrm token from https://admin.drm.technology - Run
grunt build
in the project's root. This will create adist
folder that contains all the files need to run this demo. - Run
grunt serve
that will run the build task and attempt to load a node.js server athttp://dashjs.vuplay.local.drm.technology:14703
Please note that you will need to add the host dashjs.vuplay.local.drm.technology
to your local machine's hosts file in order for this to work. This server is not suitable for production.
Adding the argument --debug
to grunt build
or grunt serve
will cause the debug version of the dashjs library to be used.
Browser support
The browser must support encrypted media extensions. Currently this includes the latest versions of Chrome, Firefox, Internet Explorer 11 and Edge. For a complete breakdown of supported media extensions please contact [email protected]
Useful links
vudrm
mpeg-DASH
Encrpyted media extensions
- Encrypted media extensions specification
- Encrypted media extensions wikipedia
- Encrypted media extensions on MDN
- Intro to encrypted media extensions