Skip to content

Commit

Permalink
feat: emit head on Webm demuxers
Browse files Browse the repository at this point in the history
  • Loading branch information
amishshah committed Jun 12, 2021
1 parent f6fcaad commit f50509f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/WebmBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ class WebmBaseDemuxer extends Transform {
}
if (ebmlID === '63a2') {
this._checkHead(data);
this.emit('head', data);
} else if (ebmlID === 'a3') {
if (!this._track) throw Error('No audio track in this webm!');
if ((data[0] & 0xF) === this._track.number) {
Expand Down

0 comments on commit f50509f

Please sign in to comment.