PlayReady – General License Acquisition Example
This guide demonstrates how to test PlayReady license acquisition using a sample MPEG-DASH stream and a license server.
Sample Encrypted Video
The following URL points to a sample MPEG-DASH video stream with PlayReady protection headers:
https://e09f957480c8b1e479a1edb0fabc72d8.egress.mediapackage-vod.eu-west-1.amazonaws.com/out/v1/6f12444e793e4206ad363f810cb2aead/bd39356f85a14f56ae3f4111e4a2bf47/47baeee535f64eb4953a31cbd34ce920/index.mpd
License Acquisition Endpoint
To acquire a PlayReady license, the player should send a request to the following endpoint:
https://customer-tests.la.drm.cloud/acquire-license/playready
Required Query Parameters
BrandGuid: Unique identifier for the brand.userToken: JWT token with license request metadata.
Example License URL
https://customer-tests.la.drm.cloud/acquire-license/playready?BrandGuid=5a96a0d0-d13f-42b0-ab2b-ba8cfc4aa0a0&userToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MzU2ODk2MDAsImRybVRva2VuSW5mbyI6eyJleHAiOiIyMDI1LTEyLTA3VDE1OjMwOjA5LjU5MDgxMjUrMDE6MDAiLCJraWQiOlsiKiJdLCJwIjp7InBlcnMiOnRydWUsImVkIjoiMjAyNS0xMi0wN1QxNTozMDowOS41OTExMzA1KzAxOjAwIn19fQ.xEToUttAk9AVFgP3bHyDlcvm6BR-8_hsl8V3n-jrDwM
Test with Microsoft PlayReady Player
You can test the stream and license acquisition using the official Microsoft PlayReady Player:
👉 PlayReady Test Server (Microsoft)
Player Configuration
Content Manifest:
https://e09f957480c8b1e479a1edb0fabc72d8.egress.mediapackage-vod.eu-west-1.amazonaws.com/out/v1/6f12444e793e4206ad363f810cb2aead/bd39356f85a14f56ae3f4111e4a2bf47/47baeee535f64eb4953a31cbd34ce920/index.mpdLicense Service:
https://customer-tests.la.drm.cloud/acquire-license/playready?BrandGuid=5a96a0d0-d13f-42b0-ab2b-ba8cfc4aa0a0&userToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MzU2ODk2MDAsImRybVRva2VuSW5mbyI6eyJleHAiOiIyMDI1LTEyLTA3VDE1OjMwOjA5LjU5MDgxMjUrMDE6MDAiLCJraWQiOlsiKiJdLCJwIjp7InBlcnMiOnRydWUsImVkIjoiMjAyNS0xMi0wN1QxNTozMDowOS41OTExMzA1KzAxOjAwIn19fQ.xEToUttAk9AVFgP3bHyDlcvm6BR-8_hsl8V3n-jrDwM
Summary
This example helps developers understand how to:
- Use a PlayReady-protected MPEG-DASH stream.
- Construct a license acquisition URL with required parameters.
- Test playback using Microsoft’s PlayReady Player.