clearkey-mp4-playback-temporary-multikey-missing-saio.https.html (2489B)
1 <!doctype html> 2 <html> 3 <head> 4 <meta charset=utf-8> 5 <title>Encrypted Media Extensions: Successful Playback, Temporary session with Clear Key, mp4, multiple keys for audio/video, with no saio boxes</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/testmediasource.js></script> 15 <script src=/encrypted-media/util/utf8.js></script> 16 17 <!-- Content metadata --> 18 <script src=/encrypted-media/content/content-metadata.js></script> 19 20 <!-- Message handler for Clear Key keysystem --> 21 <script src=/encrypted-media/util/clearkey-messagehandler.js></script> 22 23 <!-- The script for this specific test --> 24 <script src=/encrypted-media/scripts/playback-temporary.js></script> 25 26 </head> 27 <body> 28 <div id='log'></div> 29 30 <div id='video'> 31 <video id="videoelement" width="200px"></video> 32 </div> 33 34 <script> 35 var contentitem = content['mp4-av-multikey'], 36 handler = new MessageHandler( 'org.w3.clearkey', contentitem ), 37 config = { video: document.getElementById('videoelement'), 38 keysystem: 'org.w3.clearkey', 39 messagehandler: handler.messagehandler, 40 audioPath: contentitem.audio.path, 41 videoPath: contentitem.video.path, 42 audioType: contentitem.audio.type, 43 videoType: contentitem.video.type, 44 // Replace 'saio' text by ' aio', and 'saiz' by ' aiz' 45 // to make those boxes unrecognized: 'senc' boxes shall 46 // be used instead 47 audioBlankBytes: contentitem.audio.saioStarts.concat(contentitem.audio.saizStarts), 48 videoBlankBytes: contentitem.video.saioStarts.concat(contentitem.video.saizStarts), 49 initDataType: 'keyids', 50 initData: getInitData(contentitem,'keyids'), 51 testcase: 'multikey audio/video' }; 52 53 54 runTest(config); 55 </script> 56 </body> 57 </html>