Skip to main content

Get your credentials and play a test stream

This article is a part of the DRM Quick Start guide, DRM-only path.

The fastest proof that your License Service works is to play a video that Axinom has already protected, using a token signed with your own communication key. No packager is involved yet.

Open your DRM configuration​

In the Management System of your environment, expand Admin Settings in the left navigation and select DRM Service.

You will use three things from this page:

  • the License Service API URLs for Widevine, PlayReady, and FairPlay
  • the Communication Key station, which holds the key ID and the key value
  • later, the Key Service API URLs for your packager

Find your DRM credentials describes the page in detail.

tip

The URLs shown on this page carry a prefix that identifies your environment, for example https://<Your DRM tenant prefix>.drm-widevine-licensing.axprod.net/AcquireLicense. Use the URLs exactly as shown for your environment.

Copy the communication key​

Open Communication Key. Your environment has one key, created together with the environment.

Copy the Key ID with its copy button, and copy the Key Value with the copy button next to the masked value. The value is not shown on screen; the copy button places it on your clipboard.

Caution

The communication key signs every token your players will present. Treat it as a secret, and do not paste it into systems you do not control.

Sign a token and play a test vector​

Open the DRM Video Playback Tool.

  1. Under Video Source URLs, pick one of the Test Vectors, for example "DRM Protected - SingleKey - H264 - DASH". The tool fills in the manifest URL and the key ID of that video.
  2. Under Communication Key, paste your Communication Key ID and Communication Key.
  3. Click Generate a License Service Message, then License Service Message -> JWT. The JWT is your signed token. It contains an entitlement message that authorizes exactly the key ID of the test vector.
  4. Under License Service, select Your Custom License Service and paste the Widevine, PlayReady, and FairPlay URLs from your DRM Service page.
  5. Pick a player and click Get Player Link. Open the link and the video plays.

Behind that, the player sent the token to your License Service, the service verified the signature with your communication key, and issued a license for the key ID in the entitlement message.

note

For the HLS test vectors on Safari, also enter the FairPlay certificate URL. For evaluation you can use the Axinom test certificate. See Video Players for the details.

If the video does not play​

  • Check the browser first. Chrome, Edge, and Firefox play DASH with Widevine or PlayReady; Safari plays HLS with FairPlay.
  • Check the token. The License Service answers every failed request with an X-AxDRM-ErrorMessage header that names the problem, for example an invalid signature.
  • See Troubleshooting for the common cases.

Next steps​

See also​

Was this page helpful?