This repository will demonstrate how to use VUDRM with hls and fairplay in the native video element. If you have any questions please contact [email protected]
- Install npm
- Clone the repository:
git clone [email protected]:Vualto/vuplay-dashjs.git
- Navigate to the project's root folder:
cd vuplay-native-hls-fairplay
- Install the dependencies:
npm install
- Open the repository in your favourite javascript editor.
- In file
index.html
replace<your-hls-stream-url>
with your stream URL. - In file
index.html
replace<your-vudrm-token>
with a VUDRM token from https://admin.drm.technology - Run
npm run build
in the project's root. This will create adist
folder that contains all the files needed to run this demo. - Load a supported browser and go to
https://localhost:14703
NB: In order to allow DRM encrypted playback in safari, SSL has been enabled for the demo. You will get a warning about an invalid cert but this can safely be ignored and accept to visit the website.
The browser must support "com.apple.fps.1_0" as WebKitMediaKeys
.
Currently this includes the latest versions of Safari.
For any question feel free to contact [email protected]