Skip to content

This is an example of how to use JWPlayer with vudrm

Notifications You must be signed in to change notification settings

Vualto/vuplay-jwplayer

Repository files navigation

VUPLAY JW Player

code style: prettier Built with Grunt

Description

This repository will demonstrate how to use Studio DRM with JW Player. If you have any questions please contact support@jwplayer.com

This repository is currently targeted at version 8.24.3 of JW Player

Instructions

Install dependencies

  1. Install npm
  2. Install the grunt-cli: npm install -g grunt-cli
  3. Clone the repository: git clone git@github.com:Vualto/vualto-jwplayer.git
  4. Navigate to the project's root folder: cd studiodrm-jwplayer
  5. Install the dependencies: npm install

Build and run the dev environment

  1. Open the repository in your favourite javascript editor.
  2. In the file studiodrm-jwplayer.js replace <dash-stream-url> with your MPEG-DASH stream URL.
  3. In the file studiodrm-jwplayer.js replace <hls-stream-url> with your HLS stream URL.
  4. In the file studiodrm-jwplayer.js replace <fairplay-cert-url> with the URL to the Fairplay certificate. Please contact support@jwplayer.com if you do not have this URL.
  5. 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
  6. 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
  7. Run npm run build in the project's root. This will create a dist folder that contains all the files needed to run this demo.
  8. Add the host jwplayer.studiodrm.local to your local machine's hosts file.
  9. 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 support@jwplayer.com 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.

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 support@jwplayer.com

Useful links

Studio DRM

JW Player

mpeg-DASH

HLS

Encrypted media extensions

Build tools