| Sukhmal Kommidi | eae1881 | 2016-10-05 18:17:47 | [diff] [blame] | 1 | <!doctype html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <meta charset=utf-8> |
| Bryce Van Dyk | 14bb3a3 | 2016-11-01 20:03:52 | [diff] [blame] | 5 | <meta name="timeout" content="long"> |
| Sukhmal Kommidi | eae1881 | 2016-10-05 18:17:47 | [diff] [blame] | 6 | <title>Encrypted Media Extensions: setMediaKeys again after playback with DRM</title> |
| 7 | <link rel="help" href="https://w3c.github.io/encrypted-media/"> |
| 8 | |
| 9 | <!-- Web Platform Test Harness scripts --> |
| 10 | <script src=/resources/testharness.js></script> |
| 11 | <script src=/resources/testharnessreport.js></script> |
| 12 | |
| 13 | <!-- Helper scripts for Encrypted Media Extensions tests --> |
| 14 | <script src=/encrypted-media/util/utils.js></script> |
| 15 | <script src=/encrypted-media/util/utf8.js></script> |
| 16 | <script src=/encrypted-media/util/fetch.js></script> |
| 17 | <script src=/encrypted-media/util/testmediasource.js></script> |
| 18 | |
| 19 | <!-- Content metadata --> |
| 20 | <script src=/encrypted-media/content/content-metadata.js></script> |
| 21 | |
| 22 | <!-- Message handler for DRM servers --> |
| 23 | <script src=/encrypted-media/util/drm-messagehandler.js></script> |
| 24 | |
| 25 | <!-- The script for this specific test --> |
| 26 | <script src=/encrypted-media/scripts/setmediakeys-again-after-playback.js></script> |
| 27 | |
| 28 | </head> |
| 29 | <body> |
| 30 | <div id='log'></div> |
| 31 | |
| 32 | <div id='video'> |
| 33 | <video id="videoelement" width="200px"></video> |
| 34 | </div> |
| 35 | |
| 36 | <script> |
| 37 | var keysystem = getSupportedKeySystem(), |
| 38 | contentitem = content['mp4-basic'], |
| 39 | handler = new MessageHandler(keysystem, contentitem ); |
| 40 | getSupportedContent( keysystem ).then( function( contents ) { |
| 41 | runTest( { video: document.getElementById('videoelement'), |
| 42 | keysystem: keysystem, |
| 43 | messagehandler: handler.messagehandler, |
| 44 | content: contentitem, |
| 45 | audioPath: contentitem.audio.path, |
| 46 | videoPath: contentitem.video.path, |
| 47 | audioType: contentitem.audio.type, |
| 48 | videoType: contentitem.video.type |
| 49 | } ); |
| 50 | } ); |
| 51 | </script> |
| 52 | </body> |
| 53 | </html> |