mp4box
Version:
JavaScript version of GPAC's MP4Box tool
15 lines (13 loc) • 404 B
JavaScript
BoxParser.createFullBoxCtor("trep", "TrackExtensionPropertiesBox", function(stream) {
this.track_ID = stream.readUint32();
this.boxes = [];
while (stream.getPosition() < this.start+this.size) {
ret = BoxParser.parseOneBox(stream, false, this.size - (stream.getPosition() - this.start));
if (ret.code === BoxParser.OK) {
box = ret.box;
this.boxes.push(box);
} else {
return;
}
}
});