tor-browser

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

drm-mp4-setmediakeys-to-multiple-video-elements.https.html (1673B)


      1 <!doctype html>
      2 <html>
      3  <head>
      4    <meta charset=utf-8>
      5    <meta name="timeout" content="long">
      6    <title>Encrypted Media Extensions: setMediaKeys to multiple video elements with DRM</title>
      7    <link rel="help" href="https://w3c.github.io/encrypted-media/">
      8 
      9    <!-- Web Platform Test Harness scripts -->
     10    <script src=/resources/testharness.js></script>
     11    <script src=/resources/testharnessreport.js></script>
     12 
     13    <!-- Helper scripts for Encrypted Media Extensions tests  -->
     14    <script src=/encrypted-media/util/utils.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    <!-- Message handler for DRM servers -->
     21    <script src=/encrypted-media/util/drm-messagehandler.js></script>
     22 
     23    <!-- The script for this specific test -->
     24    <script src=/encrypted-media/scripts/setmediakeys-to-multiple-video-elements.js></script>
     25 
     26  </head>
     27  <body>
     28    <div id='log'></div>
     29 
     30    <div id='video1'>
     31      <video id="videoelement1" width="200px"></video>
     32    </div>
     33    <div id='video2'>
     34      <video id="videoelement2" width="200px"></video>
     35    </div>
     36 
     37    <script>
     38        var keysystem = getSupportedKeySystem();
     39        getSupportedContent( keysystem ).then( function( contents ) {
     40            runTest( {  video1:              document.getElementById('videoelement1'),
     41                        video2:              document.getElementById('videoelement2'),
     42                        keysystem:          keysystem,
     43                        content:            contents[ 0 ]
     44                     } );
     45        } );
     46    </script>
     47  </body>
     48 </html>