drm-mp4-onencrypted.https.html (1545B)
1 <!doctype html> 2 <html> 3 <head> 4 <meta charset=utf-8> 5 <title>Encrypted Media Extensions: Encrypted fired on encrypted media file with DRM, mp4</title> 6 <link rel="help" href="https://w3c.github.io/encrypted-media/"> 7 8 <!-- Web Platform Test Harness scripts --> 9 <script src=/resources/testharness.js></script> 10 <script src=/resources/testharnessreport.js></script> 11 12 <!-- Helper scripts for Encrypted Media Extensions tests --> 13 <script src=/encrypted-media/util/utils.js></script> 14 <script src=/encrypted-media/util/testmediasource.js></script> 15 <script src=/encrypted-media/util/utf8.js></script> 16 17 <!-- Content metadata --> 18 <script src=/encrypted-media/content/content-metadata.js></script> 19 20 <!-- The script for this specific test --> 21 <script src=/encrypted-media/scripts/onencrypted.js></script> 22 23 </head> 24 <body> 25 <div id='log'></div> 26 27 <div id='video'> 28 <video id="videoelement" width="200px"></video> 29 </div> 30 31 <script> 32 var contentItem = content['mp4-av-multikey'], 33 config = { 34 video: document.getElementById('videoelement'), 35 content: contentItem, 36 audioType: contentItem.audio.type, 37 videoType: contentItem.video.type, 38 audioPath: contentItem.audio.path, 39 videoPath: contentItem.video.path, 40 initDataType: contentItem.initDataType, 41 keys: contentItem.keys 42 }; 43 runTest(config); 44 </script> 45 </body> 46 </html>