From 94655019ca9b1260dc65c9937227603b39fcc9cd Mon Sep 17 00:00:00 2001 From: Serhii Date: Mon, 4 Oct 2021 16:16:41 +0300 Subject: [PATCH] fix(FEC-11606): add TextTrack label to TIMED_METADATA event (#609) --- src/engines/html5/html5.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engines/html5/html5.js b/src/engines/html5/html5.js index d1ae8ffab..288524b24 100644 --- a/src/engines/html5/html5.js +++ b/src/engines/html5/html5.js @@ -1165,7 +1165,7 @@ export default class Html5 extends FakeEventTarget implements IEngine { const listenToCueChange = track => { track.mode = PKTextTrack.MODE.HIDDEN; this._eventManager.listen(track, 'cuechange', () => { - this.dispatchEvent(new FakeEvent(CustomEventType.TIMED_METADATA, {cues: Array.from(track.activeCues)})); + this.dispatchEvent(new FakeEvent(CustomEventType.TIMED_METADATA, {cues: Array.from(track.activeCues), label: track.label})); }); }; const metadataTrack = Array.from(this._el.textTracks).find((track: TextTrack) => PKTextTrack.isMetaDataTrack(track));