OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <html> |
| 3 <head> |
| 4 <meta charset=utf-8> |
| 5 <title>Encrypted Media Extensions - Test MediaKeys attribute, setServerCerti
ficate and setServerCertificate exception syntax for Clear Key, mp4</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 <!-- The script for this specific test --> |
| 21 <script src=/encrypted-media/scripts/syntax-mediakeys.js></script> |
| 22 |
| 23 </head> |
| 24 <body> |
| 25 <div id='log'></div> |
| 26 <div id='video'> |
| 27 <video id="videoelement" width="200px"></video> |
| 28 </div> |
| 29 <script> |
| 30 var contentItem = content['mp4-basic'], |
| 31 config = { |
| 32 keysystem: 'org.w3.clearkey', |
| 33 content: contentItem, |
| 34 initDataType: 'keyids', |
| 35 initData: getInitData(contentItem, 'keyids'), |
| 36 audioType: contentItem.audio.type, |
| 37 videoType: contentItem.video.type |
| 38 }; |
| 39 runTest(config); |
| 40 </script> |
| 41 </body> |
| 42 </html> |
OLD | NEW |