OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <html> |
| 3 <head> |
| 4 <meta charset=utf-8> |
| 5 <meta name="timeout" content="long"> |
| 6 <title>Encrypted Media Extensions: Successful Playback, Temporary session wi
th Clear Key, mp4, two videos</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/fetch.js></script> |
| 16 <script src=/encrypted-media/util/testmediasource.js></script> |
| 17 <script src=/encrypted-media/util/utf8.js></script> |
| 18 |
| 19 <!-- Content metadata --> |
| 20 <script src=/encrypted-media/content/content-metadata.js></script> |
| 21 |
| 22 <!-- Message handler for Clear Key keysystem --> |
| 23 <script src=/encrypted-media/util/clearkey-messagehandler.js></script> |
| 24 |
| 25 <!-- The script for this specific test --> |
| 26 <script src=/encrypted-media/scripts/playback-temporary-two-videos.js></scri
pt> |
| 27 |
| 28 </head> |
| 29 <body> |
| 30 <div id='log'></div> |
| 31 |
| 32 <div id='video'> |
| 33 <video id="videoelement1" width="200px"></video> |
| 34 <video id="videoelement2" width="200px"></video> |
| 35 </div> |
| 36 |
| 37 <script> |
| 38 var contentitem = content['mp4-basic'], |
| 39 handler = new MessageHandler( 'org.w3.clearkey', contentitem ), |
| 40 config = { video: [ document.getElementById( 'videoe
lement1' ), |
| 41 document.getElementById( 'videoe
lement2' ) ], |
| 42 keysystem: 'org.w3.clearkey', |
| 43 messagehandler: handler.messagehandler, |
| 44 audioPath: contentitem.audio.path, |
| 45 videoPath: contentitem.video.path, |
| 46 audioType: contentitem.audio.type, |
| 47 videoType: contentitem.video.type, |
| 48 initDataType: 'keyids', |
| 49 initData: getInitData(contentitem,'keyids'), |
| 50 }; |
| 51 |
| 52 runTest(config); |
| 53 </script> |
| 54 </body> |
| 55 </html> |
OLD | NEW |