blob: d3fb0e33ba630c4dedb6d7162f6a6e3d12077610 [file] [log] [blame]
<html>
<body>
<video controls="" name="video">
<!-- This test doesn't play the video, so any file will do
as long as it can be loaded. -->
<source src="bear-320x240-av-enc_a.webm" type="video/webm">
</video>
<script type="text/javascript">
function testKeySystemInstantiation(keySystem) {
var video = document.getElementsByTagName('video')[0];
var initData = new Uint8Array([0x41, 0x42, 0x43]);
try {
video.webkitGenerateKeyRequest(keySystem, initData);
return 'success';
} catch (err) {
return err.name;
}
}
</script>
</body>
</html>