Files
sousa-gecko/testing/web-platform/tests/encrypted-media/drm-mp4-playback-temporary-playduration.https.html
T
Vikram Pasupathy 3d1b32a9b0 Bug 1959266 [wpt PR 51905] - blink: Fix EME tests to use https, a=testonly
Automatic update from web-platform-tests
blink: Fix EME tests to use https

The EME tests fixed below were failing due to the error:
"navigator.requestMediaKeySystemAccess not a function", because the
tests were being loaded into http, not https. Renaming the file to use
https, which is required by EME, fixes the tests.

Bug: 349649084
Change-Id: Ibc4c71984217eb779480c8c00ba3793cf91fc205
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6437105
Commit-Queue: Vikram Pasupathy <vpasupathy@chromium.org>
Reviewed-by: Sangbaek Park <sangbaekpark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1444362}

--

wpt-commits: b65ab75043fb8153c5669d4bef625356450fa09e
wpt-pr: 51905
2025-04-10 15:20:04 +00:00

53 lines
2.0 KiB
HTML

<!doctype html>
<html>
<head>
<meta charset=utf-8>
<title>Encrypted Media Extensions: Successful Playback, Temporary session limited playduration, DRM, mp4</title>
<link rel="help" href="https://w3c.github.io/encrypted-media/">
<!-- Web Platform Test Harness scripts -->
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<!-- Helper scripts for Encrypted Media Extensions tests -->
<script src=/encrypted-media/util/utils.js></script>
<script src=/encrypted-media/util/utf8.js></script>
<script src=/encrypted-media/util/testmediasource.js></script>
<!-- Content metadata -->
<script src=/encrypted-media/content/content-metadata.js></script>
<!-- Message handler for DRM servers -->
<script src=/encrypted-media/util/drm-messagehandler.js></script>
<!-- The script for this specific test -->
<script src=/encrypted-media/scripts/playback-temporary-playduration.js></script>
</head>
<body>
<div id='log'></div>
<div id='video'>
<video id="videoelement" width="200px"></video>
</div>
<script>
var keysystem = getSupportedKeySystem(),
contentitem = content['mp4-basic'],
handler = new MessageHandler( keysystem, contentitem ),
config = { video: document.getElementById('videoelement'),
keysystem: keysystem,
messagehandler: handler.messagehandler,
audioPath: contentitem.audio.path,
videoPath: contentitem.video.path,
audioType: contentitem.audio.type,
videoType: contentitem.video.type,
initDataType: contentitem.initDataType,
playduration: 2000,
testcase: 'single key' };
runTest(config);
</script>
</body>
</html>