Skip to main content

Widevine - general license acquisition example

Here you can see the URL for a sample encrypted video in MPEG DASH format that contains the Widevine Protection headers: https://e09f957480c8b1e479a1edb0fabc72d8.egress.mediapackage-vod.eu-west-1.amazonaws.com/out/v1/6f12444e793e4206ad363f810cb2aead/bd39356f85a14f56ae3f4111e4a2bf47/47baeee535f64eb4953a31cbd34ce920/index.mpd The player should make the following licenses request Widevine endpoint: https://customer-tests.la.drm.cloud/acquire-license/widevine

With the sandbox BrandGuid and UserToken querystring parameters generated as in the example above, the resulting license URL will look like this: https://customer-tests.la.drm.cloud/acquire-license/widevine?BrandGuid=5a96a0d0-d13f-42b0-ab2b-ba8cfc4aa0a0&userToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MzU2ODk2MDAsImRybVRva2VuSW5mbyI6eyJleHAiOiIyMDI1LTEyLTA3VDE1OjMwOjA5LjU5MDgxMjUrMDE6MDAiLCJraWQiOlsiKiJdLCJwIjp7InBlcnMiOnRydWUsImVkIjoiMjAyNS0xMi0wN1QxNTozMDowOS41OTExMzA1KzAxOjAwIn19fQ.xEToUttAk9AVFgP3bHyDlcvm6BR-8_hsl8V3n-jrDwM

You can test the example in Bitmovin Demo WebPlayer for Widevine: https://bitmovin.com/demos/stream-test?format=dash&manifest=https%3A%2F%2Fe09f957480c8b1e479a1edb0fabc72d8.egress.mediapackage-vod.eu-west-1.amazonaws.com%2Fout%2Fv1%2F6f12444e793e4206ad363f810cb2aead%2Fbd39356f85a14f56ae3f4111e4a2bf47%2F47baeee535f64eb4953a31cbd34ce920%2Findex.mpd&drm=widevine&license=https%3A%2F%2Fcustomer-tests.la.drm.cloud%2Facquire-license%2Fwidevine%3FBrandGuid%3D5a96a0d0-d13f-42b0-ab2b-ba8cfc4aa0a0%26userToken%3DeyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MzU2ODk2MDAsImRybVRva2VuSW5mbyI6eyJleHAiOiIyMDI1LTEyLTA3VDE1OjMwOjA5LjU5MDgxMjUrMDE6MDAiLCJraWQiOlsiKiJdLCJwIjp7InBlcnMiOnRydWUsImVkIjoiMjAyNS0xMi0wN1QxNTozMDowOS41OTExMzA1KzAxOjAwIn19fQ.xEToUttAk9AVFgP3bHyDlcvm6BR-8_hsl8V3n-jrDwM