-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvideoCheck.html
More file actions
32 lines (31 loc) · 973 Bytes
/
Copy pathvideoCheck.html
File metadata and controls
32 lines (31 loc) · 973 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE HTML>
<html lang = "en"
class = "no-js">
<head>
<title>checkVideo.html</title>
<meta charset = "UTF-8" />
<script type = "text/javascript"
src = "modernizr-1.6.min.js"></script>
<script type = "text/javascript">
function init(){
var output = document.getElementById("output");
if (Modernizr.video){
output.innerHTML = "Your browser supports video <br /> ";
if (Modernizr.video.h264){
output.innerHTML += "H.264 codec supported <br />";
} // end if
if (Modernizr.video.ogg){
output.innerHTML += "Ogg Theora video codec supported <br />";
} // end if
} else {
output.innerHTML = "Your browser does not support the HTML5 video tag"; } // end if
} // end init
</script>
</head>
<body onload = "init()">
<h1>Check for HTML5 Video</h1>
<div id = "output">
checking video...
</div>
</body>
</html>