Lab
  • DRM packaging tutorialsCourse
  • 5 things you need to know about multi-DRMCourse
  • Getting started with Doverunner Anti PiracyCourse
  • Getting started with Doverunner Forensic WatermarkingCourse
  • Getting started with Doverunner Mobile App SecurityCourse
  • Getting started with Doverunner Multi-DRMCourse
  • Getting started with Doverunner Transcoding & PackagingCourse
  • Packaging content with the DRM CLI PackagerLesson · DRM packaging tutorials
한국어

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.

Lesson 35 min

DRM: —Status: idle

Transcript
Play DRM content in Doverunner Lab. Step 3 of the Multi-DRM quickstart. You've packaged your content and generated a license token. Now you'll put both into Doverunner's test player, request a real DRM license, and confirm playback works — including how to read the inspector when it doesn't. When you press play, the player sends your license token and content details to the Doverunner license server. Once that request is validated, a license comes back to the player and playback starts. The token you made in the last step is what authorizes that license. For a real service, Doverunner ships HTML5 player sample code and native SDKs for Android, iOS, and other OTT platforms — all on the downloads page. To check that your packaging and token work, you don't need any of that: Doverunner Lab has a DRM playback tester built in, and that's what we'll use. Open Doverunner Lab at lab.doverunner.com, go to Playground, and pick the DRM playback tester. Choose Custom content. The license URL points at Doverunner's license server and is already filled in. Paste your DASH manifest URL — that's the .mpd manifest from the content you uploaded to your test web server. Then paste your license token into the license token field. Click Load custom content, then Play. The player requests a license, and if everything checks out, the video starts. The inspector next to the player is where everything shows up: the Timeline tab follows the license request, and Token & keys shows the decoded token and key status. If the license request fails, an Error tab appears with the error code and message. For the full history, the Doverunner Console has an Analytics page under Multi DRM, listing every license request, successful or not. Three things cause almost every failure here. One: the DRM type in your token has to match your browser — Widevine for Chrome and Firefox, PlayReady for Windows Edge. Two: tokens expire after ten minutes by default, so generate a fresh one if you've been away. Three: if your content and the player are on different domains, your web server needs CORS enabled. That's the full Multi-DRM quickstart — packaged content, a license token, and a real playback test. From here, the packaging, license, and client integration guides cover taking this into production.

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:

  1. Gather your DASH URL and license token
  2. Load them into the DRM playback tester
  3. Read the inspector

How playback gets its license

When you press play:

  1. The player requests playback.
  2. It sends your license token and content details to the Doverunner license server.
  3. Doverunner validates the request.
  4. A license is issued to the player.
  5. 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_CRYPTO for 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:

  1. 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.
  2. 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.
  3. 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

  1. Packaged a video into DRM-protected MPEG-DASH
  2. Issued a license token for it
  3. Played it by requesting a real license

What's next

From here, three guides cover taking this into production: