tor-browser

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

clearkey-mp4-setmediakeys-to-multiple-video-elements.https.html (1608B)


      1 <!doctype html>
      2 <html>
      3  <head>
      4    <meta charset=utf-8>
      5    <title>Encrypted Media Extensions: setMediaKeys to multiple video elements with Clear Key</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 
     16    <!-- Content metadata -->
     17    <script src=/encrypted-media/content/content-metadata.js></script>
     18 
     19    <!-- Message handler for Clear Key -->
     20    <script src=/encrypted-media/util/clearkey-messagehandler.js></script>
     21 
     22    <!-- The script for this specific test -->
     23    <script src=/encrypted-media/scripts/setmediakeys-to-multiple-video-elements.js></script>
     24 
     25  </head>
     26  <body>
     27    <div id='log'></div>
     28 
     29    <div id='video1'>
     30      <video id="videoelement1" width="200px"></video>
     31    </div>
     32    <div id='video2'>
     33      <video id="videoelement2" width="200px"></video>
     34    </div>
     35 
     36    <script>
     37        getSupportedContent( 'org.w3.clearkey' ).then( function( contents ) {
     38            runTest( {  video1:              document.getElementById('videoelement1'),
     39                        video2:              document.getElementById('videoelement2'),
     40                        keysystem:          'org.w3.clearkey',
     41                        content:            contents[ 0 ]
     42                     } );
     43        } );
     44    </script>
     45  </body>
     46 </html>