UNPKG
mp4box
Version:
latest (2.4.1)
next (1.0.0)
2.4.1
2.4.0
2.3.0
2.2.0
2.1.2
2.1.1
2.1.0
2.0.0
1.5.0
1.4.7
1.4.6
1.4.5
1.4.4
1.4.3
1.4.2
1.4.1
1.4.0
1.3.1
1.3.0
1.2.0
1.1.0
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.6.5
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
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
0.0.0-development
JavaScript version of GPAC's MP4Box tool
github.com/gpac/mp4box.js
gpac/mp4box.js
mp4box
/
src
/
writing
/
stss.js
10 lines
(8 loc)
•
262 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
BoxParser.stssBox.prototype.write = function(stream) {
this
.version =
0
;
this
.flags =
0
;
this
.size =
4
+
4
*
this
.sample_numbers.length;
this
.writeHeader(stream); stream.writeUint32(
this
.sample_numbers.length); stream.writeUint32Array(
this
.sample_numbers); }