Skip to content

Commit

Permalink
fix(FEC-11606): add TextTrack label to TIMED_METADATA event (#609)
Browse files Browse the repository at this point in the history
  • Loading branch information
semarche-kaltura authored Oct 4, 2021
1 parent abf11ef commit 9465501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engines/html5/html5.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 9465501

Please sign in to comment.