UNPKG
mp4box
Version:
latest (0.5.4)
0.5.4
0.5.3
0.5.2
0.5.1
0.4.9
0.4.8
0.4.7
0.4.6
0.4.5
0.4.4
0.4.1
0.4.0
0.3.20
0.3.19
0.3.16
0.3.15
0.3.11
0.3.8
0.1.0
JavaScript version of GPAC's MP4Box tool
github.com/gpac/mp4box.js
gpac/mp4box.js
mp4box
/
src
/
parsing
/
stss.js
13 lines
(11 loc)
•
284 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
BoxParser.createFullBoxCtor(
"stss"
,
"SyncSampleBox"
, function(stream) {
var
i;
var
entry_count; entry_count = stream.readUint32();
if
(
this
.version ===
0
) {
this
.sample_numbers = [];
for
(i=
0
; i<entry_count; i++) {
this
.sample_numbers.push(stream.readUint32()); } } });