| squapp | 9c95576 | 2016-10-03 20:56:55 | [diff] [blame] | 1 | <!doctype html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <meta charset=utf-8> |
| 5 | <title>Encrypted Media Extensions - Reset MediaSource after setMediaKeys 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/testmediasource.js></script> |
| 16 | <script src=/encrypted-media/util/fetch.js></script> |
| 17 | |
| 18 | <!-- Content metadata --> |
| 19 | <script src=/encrypted-media/content/content-metadata.js></script> |
| 20 | |
| 21 | <!-- The script for this specific test --> |
| 22 | <script src=/encrypted-media/scripts/reset-src-after-setmediakeys.js></script> |
| 23 | |
| 24 | </head> |
| 25 | <body> |
| 26 | <div id='log'></div> |
| 27 | <div id='video'> |
| 28 | <video id="videoelement" width="200px"></video> |
| 29 | </div> |
| 30 | |
| 31 | <script> |
| 32 | var contentItem = content['mp4-av-multikey'], |
| 33 | config = { |
| 34 | video: document.getElementById('videoelement'), |
| 35 | keysystem: 'org.w3.clearkey', |
| 36 | content: contentItem, |
| 37 | initDataType: 'keyids', |
| 38 | initData: getInitData(contentItem,'keyids'), |
| 39 | audioType: contentItem.audio.type, |
| 40 | videoType: contentItem.video.type, |
| 41 | audioPath: contentItem.audio.path, |
| 42 | videoPath: contentItem.video.path, |
| 43 | }; |
| 44 | runTest(config); |
| 45 | </script> |
| 46 | </body> |
| 47 | </html> |