forked from gpac/mp4box.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
filereader.html
217 lines (195 loc) · 6.18 KB
/
filereader.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>MP4Box.js - JavaScript MP4 Reader/Fragmenter</title>
<!-- Include basic JQuery and JQuery UI files -->
<script src="lib/jquery/jquery.js"></script>
<link href="lib/jquery-ui/jquery-ui.min.css" rel="stylesheet" type="text/css">
<script src="lib/jquery-ui/jquery-ui.min.js"></script>
<script src="lib/jquery-ui/jquery-ui.slider.custom.js"></script>
<!-- Include JQuery-based Fancytree skin, library, and extensions -->
<link href="lib/fancytree/ui.fancytree.min.css" rel="stylesheet" type="text/css">
<script src="lib/fancytree/jquery.fancytree-all.min.js" type="text/javascript"></script>
<script type="text/javascript" src="lib/d3/d3.js"></script>
<script src="../dist/mp4box.all.js"></script>
<script src="sample-urls.js"></script>
<script src="movieInfoDisplay.js"></script>
<script src="boxHtmlTable.js"></script>
<script src="boxfancytree.js"></script>
<script src="filereader.js"></script>
<script src="ui-helper.js"></script>
<script src="downloader.js"></script>
<style type="text/css">
.box{
background-color:gray;
height:200px;
width:250px;
margin-top:120px;
margin-left:500px;
border:1px ridge #aaa;
-moz-box-shadow: 10px 10px 10px #212121;
-webkit-box-shadow: 10px 10px 10px #212121;
box-shadow: 10px 10px 10px #212121;
}
table, td, th {
text-align: left;
vertical-align: text-top;
border-spacing: 0;
border: 0;
border-collapse: collapse;
}
td:first-child { width: 20%; }
ul.fancytree-container {
height: 50vh;
overflow: auto;
position: relative;
}
/* D3 Treemap styles */
#treemap {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
margin: auto;
position: relative;
width: 960px;
}
.node {
border: solid 1px white;
font: 10px sans-serif;
line-height: 12px;
overflow: hidden;
position: absolute;
text-indent: 2px;
}
.chart {
display: block;
margin: auto;
font-size: 11px;
}
rect {
stroke: #eee;
fill: #aaa;
fill-opacity: .8;
}
rect.parent {
cursor: pointer;
fill: steelblue;
}
text {
pointer-events: none;
}
.axis path,
.axis line, {
fill: none;
stroke: #000;
shape-rendering: crispEdges;
}
.x.axis path {
}
.area.above {
fill: rgb(252,141,89);
}
.area.below {
fill: rgb(145,207,96);
}
.line {
fill: none;
stroke: #000;
stroke-width: 1px;
}
.ui-selectmenu-button {
vertical-align: middle;
}
</style>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<!-- GitHub Fork Me Ribbon -->
<a href="https://github.com/gpac/mp4box.js"><img style="position: absolute; z-index: 1; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png" alt="Fork me on GitHub" ></a>
<!-- GitHub Stat Buttons -->
<div style="position: absolute; top: 10px; right: 150px; border: 0;" >
<a class="github-button" href="https://github.com/gpac/mp4box.js" data-style="mega" data-count-href="/gpac/mp4box.js/stargazers" data-count-api="/repos/gpac/mp4box.js#stargazers_count">Star</a>
<a class="github-button" href="https://github.com/gpac/mp4box.js/fork" data-style="mega" data-count-href="/gpac/mp4box.js/network" data-count-api="/repos/gpac/mp4box.js#forks_count">Fork</a>
<a class="github-button" href="https://github.com/gpac/mp4box.js" data-style="mega" data-count-href="/gpac/mp4box.js/watchers" data-count-api="/repos/gpac/mp4box.js#subscribers_count">Watch</a>
<script async defer id="github-bjs" src="https://buttons.github.io/buttons.js"></script>
</div>
<h3>MP4Box.js / ISOBMFF Box Structure Viewer (see <a href="../#demos">other demos</a>)</h3>
<p>Client-side tool: files are processed locally in your browser and not uploaded to any server</p>
<div id="menubar" style="clear: both;"></div>
<div id="resulttabs" style="clear: both;">
<ul>
<li><a href="#movieview">File Overview</a></li>
<li><a href="#boxview">Box View</a></li>
<li><a href="#sampleview">Sample View</a></li>
<li><a href="#itemview">Item View</a></li>
<li><a href="#segmentview">Segment View</a></li>
</ul>
<div id="movieview">
</div>
<div id="boxview">
<ul>
<li><a href="#boxtreeview">Tree View</a></li>
<li><a href="#boxpartitionview">Partition View</a></li>
<li><a href="#boxmapview">Treemap View</a></li>
</ul>
<div id="boxtreeview">
<table>
<thead>
<tr>
<th>Box Tree View</th>
<th>Box Property View</th>
</tr>
</thead>
<tbody>
<tr>
<td style="width: 30%">
<div id="boxtree">
</div>
</td>
<td>
<div id="boxtable">
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="boxpartitionview">
</div>
<div id="boxmapview">
</div>
</div>
<div id="sampleview">
<label>View type:<select name="sampleviewselector" id="sampleviewselector">
<option selected="selected">Sample Table</option>
<option>Sample Graph</option>
<option>Sample Map</option>
<option>Sample Timeline</option>
</select></label>
<label>Track ID: <select id="trackSelect" name="trackSelect"></select></label>
<label>Codec: <input type="text" disabled id="trackinfo" style="width: 120px;"></label>
<label>Sample range: <input type="text" disabled id="sample-range-value" style="width: 200px;"></label>
<div id="sample-range"></div>
<div>
<div id="sampletable"></div>
<div id="samplegraph"></div>
<div id="samplemap"></div>
<div id="sampletimeline"></div>
</div>
</div>
<div id="itemview">
</div>
<div id="segmentview">
<label>View type:<select name="segmentviewselector" id="segmentviewselector">
<option selected="selected">Segment Table</option>
<option>Segment Graph</option>
</select></label>
<label>Segment range: <input type="text" disabled id="segment-range-value" style="width: 200px;"></label>
<div id="segment-range"></div>
<div>
<div id="segmenttable"></div>
<div id="segmentgraph"></div>
</div>
</div>
</div>
</body>
</html>