OLD | NEW |
1 <html> | 1 <html> |
2 <body> | 2 <body> |
3 <video controls="" name="video"> | 3 <video controls="" name="video"> |
4 <!-- This test doesn't play the video, so any file will do | 4 <!-- This test doesn't play the video, so any file will do |
5 as long as it can be loaded. --> | 5 as long as it can be loaded. --> |
6 <source src="bear-320x240-av-enc_a.webm" type="video/webm"> | 6 <source src="bear-320x240-av_enc-a.webm" type="video/webm"> |
7 </video> | 7 </video> |
8 <script type="text/javascript"> | 8 <script type="text/javascript"> |
9 function testKeySystemInstantiation(keySystem) { | 9 function testKeySystemInstantiation(keySystem) { |
10 var video = document.getElementsByTagName('video')[0]; | 10 var video = document.getElementsByTagName('video')[0]; |
11 var initData = new Uint8Array([0x41, 0x42, 0x43]); | 11 var initData = new Uint8Array([0x41, 0x42, 0x43]); |
12 try { | 12 try { |
13 video.webkitGenerateKeyRequest(keySystem, initData); | 13 video.webkitGenerateKeyRequest(keySystem, initData); |
14 return 'success'; | 14 return 'success'; |
15 } catch (err) { | 15 } catch (err) { |
16 return err.name; | 16 return err.name; |
17 } | 17 } |
18 } | 18 } |
19 </script> | 19 </script> |
20 </body> | 20 </body> |
21 </html> | 21 </html> |
OLD | NEW |