From de98b25fb78b2d5ace5c8a90baf0578327a2c258 Mon Sep 17 00:00:00 2001 From: Joey Parrish Date: Wed, 26 Apr 2023 17:05:32 -0700 Subject: [PATCH] test: Fix PlayReady server URL syntax (#5190) The padding on the base64-encoded content key was missing from the URL. This did not show up until I tested on Tizen. --- test/media/drm_engine_integration.js | 2 +- test/test/util/test_scheme.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/media/drm_engine_integration.js b/test/media/drm_engine_integration.js index 3908f144dc..72ec334b54 100644 --- a/test/media/drm_engine_integration.js +++ b/test/media/drm_engine_integration.js @@ -88,7 +88,7 @@ describe('DrmEngine', () => { config.servers['com.widevine.alpha'] = 'https://cwip-shaka-proxy.appspot.com/specific_key?blodJidXR9eARuql0dNLWg=GX8m9XLIZNIzizrl0RTqnA'; config.servers['com.microsoft.playready'] = - 'https://test.playready.microsoft.com/service/rightsmanager.asmx?cfg=(kid:6e5a1d26-2757-47d7-8046-eaa5d1d34b5a,contentkey:GX8m9XLIZNIzizrl0RTqnA,sl:150)'; + 'https://test.playready.microsoft.com/service/rightsmanager.asmx?cfg=(kid:6e5a1d26-2757-47d7-8046-eaa5d1d34b5a,contentkey:GX8m9XLIZNIzizrl0RTqnA==,sl:150)'; drmEngine.configure(config); manifest = shaka.test.ManifestGenerator.generate((manifest) => { diff --git a/test/test/util/test_scheme.js b/test/test/util/test_scheme.js index cfc643dc01..e4134203e5 100644 --- a/test/test/util/test_scheme.js +++ b/test/test/util/test_scheme.js @@ -482,7 +482,7 @@ const axinomDrmServers = { 'com.widevine.alpha': 'https://cwip-shaka-proxy.appspot.com/specific_key?blodJidXR9eARuql0dNLWg=GX8m9XLIZNIzizrl0RTqnA', 'com.microsoft.playready': - 'https://test.playready.microsoft.com/service/rightsmanager.asmx?cfg=(kid:6e5a1d26-2757-47d7-8046-eaa5d1d34b5a,contentkey:GX8m9XLIZNIzizrl0RTqnA,sl:150)', + 'https://test.playready.microsoft.com/service/rightsmanager.asmx?cfg=(kid:6e5a1d26-2757-47d7-8046-eaa5d1d34b5a,contentkey:GX8m9XLIZNIzizrl0RTqnA==,sl:150)', }; /** @type {TextMetadataType} */