diff --git a/src/box-codecs.js b/src/box-codecs.js index b9a19aed..07ffa5f7 100644 --- a/src/box-codecs.js +++ b/src/box-codecs.js @@ -88,7 +88,10 @@ BoxParser.decimalToHex = function(d, padding) { return hex; } -BoxParser.avc1SampleEntry.prototype.getCodec = function() { +BoxParser.avc1SampleEntry.prototype.getCodec = +BoxParser.avc2SampleEntry.prototype.getCodec = +BoxParser.avc3SampleEntry.prototype.getCodec = +BoxParser.avc4SampleEntry.prototype.getCodec = function() { var baseCodec = BoxParser.SampleEntry.prototype.getCodec.call(this); if (this.avcC) { return baseCodec+"."+BoxParser.decimalToHex(this.avcC.AVCProfileIndication)+ @@ -99,6 +102,7 @@ BoxParser.avc1SampleEntry.prototype.getCodec = function() { } } +BoxParser.hev1SampleEntry.prototype.getCodec = BoxParser.hvc1SampleEntry.prototype.getCodec = function() { var i; var baseCodec = BoxParser.SampleEntry.prototype.getCodec.call(this); diff --git a/src/parsing/sampleentries/sampleentry.js b/src/parsing/sampleentries/sampleentry.js index 2671c746..7a7d418f 100644 --- a/src/parsing/sampleentries/sampleentry.js +++ b/src/parsing/sampleentries/sampleentry.js @@ -71,8 +71,12 @@ BoxParser.createMediaSampleEntryCtor(BoxParser.SAMPLE_ENTRY_TYPE_AUDIO, function // Sample entries inheriting from Audio and Video BoxParser.createSampleEntryCtor(BoxParser.SAMPLE_ENTRY_TYPE_VISUAL, "avc1"); +BoxParser.createSampleEntryCtor(BoxParser.SAMPLE_ENTRY_TYPE_VISUAL, "avc2"); +BoxParser.createSampleEntryCtor(BoxParser.SAMPLE_ENTRY_TYPE_VISUAL, "avc3"); +BoxParser.createSampleEntryCtor(BoxParser.SAMPLE_ENTRY_TYPE_VISUAL, "avc4"); BoxParser.createSampleEntryCtor(BoxParser.SAMPLE_ENTRY_TYPE_VISUAL, "av01"); BoxParser.createSampleEntryCtor(BoxParser.SAMPLE_ENTRY_TYPE_VISUAL, "hvc1"); +BoxParser.createSampleEntryCtor(BoxParser.SAMPLE_ENTRY_TYPE_VISUAL, "hev1"); BoxParser.createSampleEntryCtor(BoxParser.SAMPLE_ENTRY_TYPE_AUDIO, "mp4a"); BoxParser.createSampleEntryCtor(BoxParser.SAMPLE_ENTRY_TYPE_AUDIO, "ac-3"); BoxParser.createSampleEntryCtor(BoxParser.SAMPLE_ENTRY_TYPE_AUDIO, "ec-3");