This repo will demonstrate how to use Studio DRM with Google's Shaka Player. If you have any questions please contact [email protected]
This repo is currently targeted at version 4.5.0 of the shaka player.
- Install npm
- Install the grunt-cli:
npm install -g grunt-cli
- Clone the repo:
git clone [email protected]:Vualto/vuplay-shaka.git
- Navigate to the project's root folder:
cd studiodrm-shaka
- Install the dependencies:
npm install
- Open the repo in your favourite javascript editor.
- In the file
studiodrm.js
replace<mpeg-dash-stream-url>
with your MPEG-DASH stream url. - In the file
studiodrm.js
replace<hls-stream-url>
with your HLS stream url. - In the file
studiodrm.js
replace<studiodrm-token>
with a Studio DRM token. Details can be found in the Studio DRM Token v2 documentation - In the file
studiodrm.js
replace<fairplay-certificate-url>
with the link to your Fairplay certifcate.
This repo contains a development node.js server. This server is not suitable for production.
- Add the host
shaka.studiodrm.local
to your local machine's hosts file. - Run
grunt serve
. - Load a supported browser and go to
https://shaka.studiodrm.local:14703
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.
NB: If you wish to use the uncompiled version of shaka run grunt serve --debug
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]
- Contact JW Player
- Studio DRM
- Studio DRM token documentation
- JW Player documentation on the configuration of DRM with Shaka Player