| Sukhmal Kommidi | eae1881 | 2016-10-05 18:17:47 | [diff] [blame] | 1 | <!doctype html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <meta charset=utf-8> |
| Sukhmal Kommidi | eae1881 | 2016-10-05 18:17:47 | [diff] [blame] | 5 | <title>Encrypted Media Extensions: setMediaKeys with DRM</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 | |
| Sukhmal Kommidi | eae1881 | 2016-10-05 18:17:47 | [diff] [blame] | 20 | <!-- The script for this specific test --> |
| 21 | <script src=/encrypted-media/scripts/setmediakeys.js></script> |
| 22 | |
| 23 | </head> |
| 24 | <body> |
| 25 | <div id='log'></div> |
| 26 | |
| 27 | <div id='video'> |
| 28 | <video id="videoelement" width="200px"></video> |
| 29 | </div> |
| 30 | |
| 31 | <script> |
| 32 | var keysystem = getSupportedKeySystem(); |
| 33 | getSupportedContent( keysystem ).then( function( contents ) { |
| 34 | runTest( { video: document.getElementById('videoelement'), |
| 35 | keysystem: keysystem, |
| 36 | content: contents[ 0 ] |
| 37 | } ); |
| 38 | } ); |
| 39 | </script> |
| 40 | </body> |
| 41 | </html> |