Skip to content

Commit

Permalink
Merge pull request #53 from Dash-Industry-Forum/prft
Browse files Browse the repository at this point in the history
Add support for prft box
  • Loading branch information
bbert committed Feb 16, 2023
2 parents 49c05a3 + 19ea5ee commit 34c4f0d
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 1 deletion.
9 changes: 9 additions & 0 deletions dist/iso_boxer.js
Original file line number Diff line number Diff line change
Expand Up @@ -948,6 +948,15 @@ ISOBox.prototype._boxProcessors['payl'] = function() {
this._procField('cue_text', 'utf8');
};

// ISO/IEC 14496-12:2012 - 8.16.5 Producer Reference Time
ISOBox.prototype._boxProcessors['prft'] = function() {
this._procFullBox();
this._procField('reference_track_ID', 'uint', 32);
this._procField('ntp_timestamp_sec', 'uint', 32);
this._procField('ntp_timestamp_frac', 'uint', 32);
this._procField('media_time', 'uint', (this.version == 1) ? 64 : 32);
};

//ISO/IEC 23001-7:2011 - 8.1 Protection System Specific Header Box
ISOBox.prototype._boxProcessors['pssh'] = function() {
this._procFullBox();
Expand Down
Loading

0 comments on commit 34c4f0d

Please sign in to comment.