tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

clearkey-mp4-waiting-for-a-key.https.html (1830B)


      1 <!doctype html>
      2 <html>
      3  <head>
      4    <meta charset=utf-8>
      5    <title>Encrypted Media Extensions - Waiting for a key for Clear Key, 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/utf8.js></script>
     15    <script src=/encrypted-media/util/testmediasource.js></script>
     16 
     17    <!-- Message handler for DRM servers -->
     18    <script src=/encrypted-media/util/clearkey-messagehandler.js></script>
     19 
     20    <!-- Content metadata -->
     21    <script src=/encrypted-media/content/content-metadata.js></script>
     22 
     23    <!-- The script for this specific test -->
     24    <script src=/encrypted-media/scripts/waiting-for-a-key.js></script>
     25 
     26  </head>
     27  <body>
     28    <div id='log'></div>
     29    <div id='video'>
     30      <video id="videoelement" width="200px"></video>
     31    </div>
     32 
     33    <script>
     34        var contentItem = content['mp4-basic'],
     35            handler = new MessageHandler('org.w3.clearkey', contentItem),
     36            config = {
     37                video: document.getElementById('videoelement'),
     38                keysystem: 'org.w3.clearkey',
     39                content: contentItem,
     40                messageHandler: handler.messagehandler,
     41                initDataType: 'keyids',
     42                initData: getInitData(contentItem, 'keyids'),
     43                audioType: contentItem.audio.type,
     44                videoType: contentItem.video.type,
     45                audioPath: contentItem.audio.path,
     46                videoPath: contentItem.video.path,
     47            };
     48        runTest(config);
     49    </script>
     50  </body>
     51 </html>