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 DRM, 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 keysystem = getSupportedKeySystem(); |
| 31 var contentItem = content['mp4-basic'], |
| 32 config = { |
| 33 keysystem: keysystem, |
| 34 content: contentItem, |
| 35 initData: stringToUint8Array(atob(contentItem.keys[0].initData))
, |
| 36 initDataType: contentItem.initDataType, |
| 37 audioType: contentItem.audio.type, |
| 38 videoType: contentItem.video.type |
| 39 }; |
| 40 runTest(config); |
| 41 </script> |
| 42 </body> |
| 43 </html> |
OLD | NEW |