Widevine DRM - License Acquisition Example
This guide demonstrates how to stream an MPEG-DASH video protected with Widevine DRM and acquire a license using a generic endpoint.
Sample Encrypted Video URL
The following MPEG-DASH manifest contains Widevine protection headers:
https://e09f957480c8b1e479a1edb0fabc72d8.egress.mediapackage-vod.eu-west-1.amazonaws.com/out/v1/6f12444e793e4206ad363f810cb2aead/bd39356f85a14f56ae3f4111e4a2bf47/47baeee535f64eb4953a31cbd34ce920/index.mpd
License Request Endpoint
To acquire a Widevine license, send a request to:
https://customer-tests.la.drm.cloud/acquire-license/widevine
Include the following query parameters:
BrandGuid: A unique identifier for the brand.userToken: A JWT token with license request metadata.
Example License URL
https://customer-tests.la.drm.cloud/acquire-license/widevine?BrandGuid=5a96a0d0-d13f-42b0-ab2b-ba8cfc4aa0a0&userToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MzU2ODk2MDAsImRybVRva2VuSW5mbyI6eyJleHAiOiIyMDI1LTEyLTA3VDE1OjMwOjA5LjU5MDgxMjUrMDE6MDAiLCJraWQiOlsiKiJdLCJwIjp7InBlcnMiOnRydWUsImVkIjoiMjAyNS0xMi0wN1QxNTozMDowOS41OTExMzA1KzAxOjAwIn19fQ.xEToUttAk9AVFgP3bHyDlcvm6BR-8_hsl8V3n-jrDwM
Test in Bitmovin Demo Player
You can test the stream and license acquisition using Bitmovin's demo player:
Notes
- Ensure your player supports Widevine DRM.
- The
userTokenmust be generated securely and include valid expiration and permissions. - This example uses a sandbox environment for testing purposes.