From f50509f3c7580f783ea04a1a588fb56c627f6a9a Mon Sep 17 00:00:00 2001 From: Amish Shah Date: Sat, 12 Jun 2021 11:26:44 +0100 Subject: [PATCH] feat: emit head on Webm demuxers --- src/core/WebmBase.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/WebmBase.js b/src/core/WebmBase.js index 6e2bcf4..030e188 100644 --- a/src/core/WebmBase.js +++ b/src/core/WebmBase.js @@ -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) {