Testing playback with the Doverunner Lab playback tester
Shows the end-to-end flow of playing your own DRM-protected content in Doverunner Lab's DRM playback tester.
Transcript
Where this lesson fits
This is step 3 of the Multi-DRM quickstart. You have packaged content and a license token. Now you'll put both into Doverunner Lab's DRM playback tester, request a real DRM license, and confirm playback works, including how to read the inspector when it doesn't. You will:
- Gather your DASH URL and license token
- Load them into the DRM playback tester
- Read the inspector
How playback gets its license
When you press play:
- The player requests playback.
- It sends your license token and content details to the Doverunner license server.
- Doverunner validates the request.
- A license is issued to the player.
- Playback starts.
The token from the last lesson is what authorizes that license.
Ways to play protected content
You have three options for playing DRM content:
- HTML5 player sample code: for web players such as Shaka Player and dash.js. Download it from the Packager and Sample Downloads page.
- Native SDKs: for Android, iOS, and other OTT platforms, from the same downloads page.
- Doverunner Lab DRM playback tester: no code, built for a quick check. This is what you use here.
For a real service you'd use the first two. To check that your packaging and token work, the playback tester is enough.
1. Load your content and token
In Doverunner Lab, open Playground > DRM Tools > DRM playback tester. No login is needed. In the content picker, choose Custom content and fill in the form:
| Field | What to enter |
|---|---|
| License URL | Already filled in with Doverunner's license server, https://drm-license.doverunner.com/ri/licenseManager.do. Leave it |
| DASH manifest URL | The stream.mpd URL of the content you uploaded to your test web server. It doesn't have to be registered anywhere |
| License token (pallycon-customdata-v2) | The license token from the previous lesson |
Leave the HLS and FPS certificate fields empty; they're for FairPlay in Safari. Select Load custom content.
Don't wait too long between generating the token and playing. It's valid for 10 minutes by default.
2. Press play
When the status shows ready, select Play. The player requests a license, and if everything checks out, the video starts. The DRM badge above the player shows which DRM your browser used, for example Widevine in Chrome.
A black frame in recordings is expected. Multi-DRM blocks screen capture by default, so protected video can appear black in a screen recording or a screenshot even while it plays normally on screen.
3. Read the inspector
There are two places to look.
The inspector beside the player. Its tabs show what happened:
- Browser: the DRMs your browser supports and the robustness levels each one passes, for example
SW_SECURE_CRYPTOfor Widevine L3. - Timeline: each step as an event: key system selected, license request sent, license response received, key status changed.
- Token & keys: the license token you sent, decoded, and the status of each content key.
- Error: appears when something fails, with the error code and message.
Doverunner Console Analytics. For the full history, open Content Security > Multi DRM > Analytics. The DRM Licenses view charts license requests over a time range you choose and lists every request, successful or not, in a table with status, content ID, user ID, DRM type, request date, device type, device model, and platform. You can filter and export it. The page also has Error and Piracy Guard tabs.
When playback fails
Three things cause almost every failure here:
- DRM type mismatch. The DRM type in your token has to match the DRM your browser uses: Widevine for Chrome and Firefox, PlayReady for Edge. Check the DRM badge or the Browser tab, then generate a new token with the right type.
- Expired token. Tokens expire after 600 seconds by default. A license can't be issued with an expired token, so generate a fresh one. The license token validator shows a token's timestamp. You can change the period under Site Settings > Integration Settings in Console.
- CORS not allowed. The tester runs on
lab.doverunner.com, so the web server hosting your content must allow cross-origin access from it. Enable CORS on that server, then reload.
If it still fails, copy the error code from the Error tab and look it up in the License Integration guide.
What you've done
- Packaged a video into DRM-protected MPEG-DASH
- Issued a license token for it
- Played it by requesting a real license
What's next
From here, three guides cover taking this into production:
- Content Packaging guide: other packaging methods
- License Integration guide: generating tokens on your server
- Client Integration guide: playing on web, mobile, and OTT