OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <html> |
| 3 <head> |
| 4 <meta charset=utf-8> |
| 5 <title>Encrypted Media Extensions: Events 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 <script src=/encrypted-media/util/fetch.js></script> |
| 16 |
| 17 <!-- Content metadata --> |
| 18 <script src=/encrypted-media/content/content-metadata.js></script> |
| 19 |
| 20 <!-- Message handler for Clear Key --> |
| 21 <script src=/encrypted-media/util/clearkey-messagehandler.js></script> |
| 22 |
| 23 <!-- The script for this specific test --> |
| 24 <script src=/encrypted-media/scripts/events.js></script> |
| 25 |
| 26 </head> |
| 27 <body> |
| 28 <div id='log'></div> |
| 29 |
| 30 <script> |
| 31 getSupportedContent( 'org.w3.clearkey' ) |
| 32 .then( function( contents ) |
| 33 { |
| 34 var content = contents.filter(function(content) { return content.key
s; })[0], |
| 35 handler = new MessageHandler( 'org.w3.clearkey', content ); |
| 36 |
| 37 runTest( { keysystem: 'org.w3.clearkey', |
| 38 content: content, |
| 39 messagehandler: handler.messagehandler, |
| 40 } ); |
| 41 } ); |
| 42 </script> |
| 43 </body> |
| 44 </html> |
OLD | NEW |