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
/
schm.js
9 lines
(7 loc)
•
266 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
BoxParser.createFullBoxCtor(
"schm"
,
"SchemeTypeBox"
, function(stream) {
this
.scheme_type = stream.readString(
4
);
this
.scheme_version = stream.readUint32();
if
(
this
.flags &
0x000001
) {
this
.scheme_uri = stream.readString(
this
.size -
this
.hdr_size -
8
); } });