This repository will demonstrate how to use Studio DRM with JW Player. If you have any questions please contact [email protected]
This repository is currently targeted at version 8.24.3 of JW Player
- Install npm
- Install the grunt-cli:
npm install -g grunt-cli
- Clone the repository:
git clone [email protected]:Vualto/vualto-jwplayer.git
- Navigate to the project's root folder:
cd studiodrm-jwplayer
- Install the dependencies:
npm install
- Open the repository in your favourite javascript editor.
- In the file
studiodrm-jwplayer.js
replace<dash-stream-url>
with your MPEG-DASH stream URL. - In the file
studiodrm-jwplayer.js
replace<hls-stream-url>
with your HLS stream URL. - In the file
studiodrm-jwplayer.js
replace<fairplay-cert-url>
with the URL to the Fairplay certificate. Please contact [email protected] if you do not have this URL. - In the file
studiodrm-jwplayer.js
replace<your-studiodrm-token>
with a Studio DRM token. Details can be found in the Studio DRM Token v2 documentation - In the file
index.html
replace<cloud-player-library-url>
with the cloud player library url found in the "Player Downloads & Keys" section of your JW Player account on the dashboard. Please refer to the following documentation for guidance on retrieving your cloud player library url - Run
npm run build
in the project's root. This will create adist
folder that contains all the files needed to run this demo. - Add the host
jwplayer.studiodrm.local
to your local machine's hosts file. - Load a supported browser and go to
https://jwplayer.studiodrm.local:14703
You will need an enterprise license with JW Player in order to playback DRM encrypted content. Please contact [email protected] or see JW Player pricing for more information.
Retrieve the JW Player key and copy the license key for the appropriate player in the Downloads
section.
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 [email protected]
- Contact JW Player
- Studio DRM
- Studio DRM token documentation
- JW Player documentation on the configuration of DRM with JWPlayer