OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Clear Key Playback with Multiple Sessions</title> | 4 <title>Clear Key Playback with Multiple Sessions</title> |
5 <script src="encrypted-media-utils.js"></script> | 5 <script src="encrypted-media-utils.js"></script> |
6 <script src="../../resources/testharness.js"></script> | 6 <script src="../../resources/testharness.js"></script> |
7 <script src="../../resources/testharnessreport.js"></script> | 7 <script src="../../resources/testharnessreport.js"></script> |
8 </head> | 8 </head> |
9 <body> | 9 <body> |
10 <video id="testVideo"></video> | 10 <video></video> |
11 <div id="log"></div> | |
12 <script> | 11 <script> |
13 async_test(function(test) | 12 async_test(function(test) |
14 { | 13 { |
15 var video = document.getElementById('testVideo'); | 14 var video = document.querySelector('video'); |
16 var content = '../content/test-encrypted-different-av-keys.webm'
; | 15 var content = '../content/test-encrypted-different-av-keys.webm'
; |
17 var audioMediaKeySession = null; | 16 var audioMediaKeySession = null; |
18 var videoMediaKeySession = null; | 17 var videoMediaKeySession = null; |
19 var audioInitDataType = null; | 18 var audioInitDataType = null; |
20 var videoInitDataType = null; | 19 var videoInitDataType = null; |
21 var audioInitData = null; | 20 var audioInitData = null; |
22 var videoInitData = null; | 21 var videoInitData = null; |
23 var audioKeyProvided = false; | 22 var audioKeyProvided = false; |
24 var videoKeyProvided = false; | 23 var videoKeyProvided = false; |
25 | 24 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 return video.setMediaKeys(mediaKeys); | 129 return video.setMediaKeys(mediaKeys); |
131 }).then(function(result) { | 130 }).then(function(result) { |
132 video.play(); | 131 video.play(); |
133 }).catch(function(error) { | 132 }).catch(function(error) { |
134 forceTestFailureFromPromise(test, error); | 133 forceTestFailureFromPromise(test, error); |
135 }); | 134 }); |
136 }, 'Playback using Clear Key key system with multiple sessions.'); | 135 }, 'Playback using Clear Key key system with multiple sessions.'); |
137 </script> | 136 </script> |
138 </body> | 137 </body> |
139 </html> | 138 </html> |
OLD | NEW |