UNPKG

mp4box

Version:

JavaScript version of GPAC's MP4Box tool

15 lines (13 loc) 394 B
BoxParser.createFullBoxCtor("stsh", "ShadowSyncSampleBox", function(stream) { var entry_count; var i; entry_count = stream.readUint32(); this.shadowed_sample_numbers = []; this.sync_sample_numbers = []; if (this.version === 0) { for(i=0; i<entry_count; i++) { this.shadowed_sample_numbers.push(stream.readUint32()); this.sync_sample_numbers.push(stream.readUint32()); } } });