This repository will demonstrate how to use Studio DRM with dash.js. If you have any questions please contact support@jwplayer.com
This repository is currently targeted at version 4.3.0 of dash.js.
- Install npm
- Install the grunt-cli:
npm install -g grunt-cli
- Clone the repository:
git clone git@github.com:Vualto/vuplay-dashjs.git
- Navigate to the project's root folder:
cd studiodrm-dashjs
- Install the dependencies:
npm install
- Open the repository in your favourite javascript editor.
- In file
src/studiodrm-dashjs.js
replace<your-stream-url>
with your stream URL. This must be a MPEG-DASH stream. - In file
src/studiodrm-dashjs.js
replace<your-studiodrm-token>
with a Studio DRM token. Details can be found in the Studio DRM Token v2 documentation - Run
npm run build
in the project's root. This will create adist
folder that contains all the files needed to run this demo. N.B. You will need to add the hostdashjs.studiodrm.local
to your local machine's hosts file in order for this to work. - Load a supported browser and go to
https://dashjs.studiodrm.local:14703
NB: In order to allow DRM encrypted playback in chrome (https://goo.gl/EEhZqT), SSL has been enabled for the demo. You will get a warning about an invalid cert NET::ERR_CERT_AUTHORITY_INVALID
but this can safely be ignored.
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 support@jwplayer.com
- Contact JW Player
- Studio DRM
- Studio DRM token documentation
- JW Player documentation on the configuration of DRM with dash.js