-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
88 lines (85 loc) · 2.74 KB
/
index.html
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html>
<html>
<head>
<title>I HEART VIDEO</title>
<link rel="stylesheet" href="stylesheets/main.css" type="text/css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js" type="text/javascript"></script>
<script src="scripts/main.js" type="text/javascript"></script>
</head>
<body>
<div>
<span id="title">I <span class="heart">HEART</span> VIDEO</span>
<span id="subtitle">by <a href="http://www.github.com/ascherkus/">ascherkus</a>
(code on <a href="http://www.github.com/ascherkus/iheartvideo">github</a>)</span>
</div>
<table>
<tr>
<td><label for="url_input">URL:</label></td>
<td>
<input id="url_input" type="text" size="64" />
<button id="url_button">Load</button>
</td>
</tr>
<tr>
<td> </td>
<td class="desc">Enter an audio/video URL to debug.</td>
</tr>
</table>
<p>
<video id="v" controls></video>
</p>
<table id="status">
<tr>
<th>readyState</th>
<td id="rs_0">HAVE_NOTHING</td>
<td id="rs_1">HAVE_METADATA</td>
<td id="rs_2">HAVE_CURRENT_DATA</td>
<td id="rs_3">HAVE_FUTURE_DATA</td>
<td id="rs_4">HAVE_ENOUGH_DATA</td>
</tr>
<tr>
<th>networkState</th>
<td id="ns_0">NETWORK_EMPTY</td>
<td id="ns_1">NETWORK_IDLE</td>
<td id="ns_2">NETWORK_LOADING</td>
<td id="ns_3">NETWORK_NO_SOURCE</td>
</tr>
<tr>
<th>error</th>
<td id="e_0">null</td>
<td id="e_1">MEDIA_ERR_ABORTED</td>
<td id="e_2">MEDIA_ERR_NETWORK</td>
<td id="e_3">MEDIA_ERR_DECODE</td>
<td id="e_4">MEDIA_ERR_SRC_NOT_SUPPORTED</td>
</tr>
<tr>
<th>counts</th>
<td>Decoded Frames: <span id="c_0"/></td>
<td>Dropped Frames: <span id="c_1"/></td>
<td>Video Bytes: <span id="c_2"/></td>
<td>Audio Bytes: <span id="c_3"/></td>
</tr>
<tr>
<th>
events<br />
<button onclick="clearLog()">Clear</button>
</th>
<td colspan="5">
<textarea id="log_text" rows="12"></textarea>
</td>
</tr>
</table>
<script type="text/javascript">
$(document).ready(main);
</script>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-15960619-1");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
</html>