tor-browser

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

drm-mp4-setmediakeys-multiple-times-with-the-same-mediakeys.https.html (1903B)


      1 <!doctype html>
      2 <html>
      3  <head>
      4    <meta charset=utf-8>
      5    <meta name="timeout" content="long">
      6    <title>Encrypted Media Extensions: setMediaKeys multiple times with the same mediakeys 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    <script src=/encrypted-media/util/testmediasource.js></script>
     17 
     18    <!-- Content metadata -->
     19    <script src=/encrypted-media/content/content-metadata.js></script>
     20 
     21    <!-- Message handler for DRM servers -->
     22    <script src=/encrypted-media/util/drm-messagehandler.js></script>
     23 
     24    <!-- The script for this specific test -->
     25    <script src=/encrypted-media/scripts/setmediakeys-multiple-times-with-the-same-mediakeys.js></script>
     26 
     27  </head>
     28  <body>
     29    <div id='log'></div>
     30 
     31    <div id='video'>
     32      <video id="videoelement" width="200px"></video>
     33    </div>
     34 
     35    <script>
     36        var keysystem = getSupportedKeySystem(),
     37            contentitem = content['mp4-basic'];
     38        getSupportedContent( keysystem ).then( function( contents ) {
     39            runTest( {  video:              document.getElementById('videoelement'),
     40                        keysystem:          keysystem,
     41                        content:            contentitem,
     42                        audioPath:          contentitem.audio.path,
     43                        videoPath:          contentitem.video.path,
     44                        audioType:          contentitem.audio.type,
     45                        videoType:          contentitem.video.type
     46                     } );
     47        } );
     48    </script>
     49  </body>
     50 </html>