| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>Clear Key Play Two Videos At Same Time</title> | 4 <title>Clear Key Play Two Videos At Same Time</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 id="testVideo"></video> |
| 11 <video id="secondVideo"></video> | 11 <video id="secondVideo"></video> |
| 12 <div id="log"></div> | |
| 13 <script> | 12 <script> |
| 14 // As this code doesn't wait for the 'message' event to simplify | 13 // As this code doesn't wait for the 'message' event to simplify |
| 15 // the code, specify the key ID and key used by the encrypted | 14 // the code, specify the key ID and key used by the encrypted |
| 16 // content. | 15 // content. |
| 17 var keyId = stringToUint8Array('0123456789012345'); | 16 var keyId = stringToUint8Array('0123456789012345'); |
| 18 var rawKey = new Uint8Array([0xeb, 0xdd, 0x62, 0xf1, 0x68, 0x14, 0xd
2, 0x7b, | 17 var rawKey = new Uint8Array([0xeb, 0xdd, 0x62, 0xf1, 0x68, 0x14, 0xd
2, 0x7b, |
| 19 0x68, 0xef, 0x12, 0x2a, 0xfc, 0xe4, 0xa
e, 0x3c]); | 18 0x68, 0xef, 0x12, 0x2a, 0xfc, 0xe4, 0xa
e, 0x3c]); |
| 20 var content = '../content/test-encrypted.webm'; | 19 var content = '../content/test-encrypted.webm'; |
| 21 | 20 |
| 22 promise_test(function(test) | 21 promise_test(function(test) |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 if (e.target.currentTime < 0.2) | 76 if (e.target.currentTime < 0.2) |
| 78 return; | 77 return; |
| 79 video.removeEventListener('timeupdate', listener); | 78 video.removeEventListener('timeupdate', listener); |
| 80 resolve(e); | 79 resolve(e); |
| 81 }); | 80 }); |
| 82 }); | 81 }); |
| 83 }; | 82 }; |
| 84 </script> | 83 </script> |
| 85 </body> | 84 </body> |
| 86 </html> | 85 </html> |
| OLD | NEW |