diff --git a/src/parsing/itai.js b/src/parsing/itai.js new file mode 100644 index 00000000..8665777b --- /dev/null +++ b/src/parsing/itai.js @@ -0,0 +1,8 @@ +BoxParser.createFullBoxCtor("itai", function(stream) { + this.TAI_timestamp = stream.readUint64(); + + status_bits = stream.readUint8(); + this.sychronization_state = (status_bits >> 7) & 0x01; + this.timestamp_generation_failure = (status_bits >> 6) & 0x01; + this.timestamp_is_modified = (status_bits >> 5) & 0x01; +}); \ No newline at end of file diff --git a/src/parsing/taic.js b/src/parsing/taic.js new file mode 100644 index 00000000..b0fd5cec --- /dev/null +++ b/src/parsing/taic.js @@ -0,0 +1,13 @@ +BoxParser.createFullBoxCtor("taic", function(stream) { + this.time_uncertainty = stream.readUint64(); + this.clock_resolution = stream.readUint32(); + this.clock_drift_rate = stream.readInt32(); + var reserved_byte = stream.readUint8(); + this.clock_type = (reserved_byte & 0xC0) >> 6; + + if (this.time_uncertainty === 0xffffffffffffffff) { + this.time_uncertainty = "unknown"; + } + + +}); \ No newline at end of file