Skip to content

Commit ca04ce0

Browse files
tykus160avelad
authored andcommitted
chore: Remove redundant EMSG event (#8832)
This event is a leftover and it's not needed since we are using RegionTimeline now for managing EMSG events. Additionally, it wasn't even fired, just being created and questioning its own existence.
1 parent fd1a35e commit ca04ce0

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/media/media_source_engine.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,13 +1014,6 @@ shaka.media.MediaSourceEngine = class {
10141014
messageData: messageData,
10151015
};
10161016

1017-
// Dispatch an event to notify the application about the emsg box.
1018-
const eventName = shaka.util.FakeEvent.EventName.Emsg;
1019-
const data = (new Map()).set('detail', emsg);
1020-
const event = new shaka.util.FakeEvent(eventName, data);
1021-
// A user can call preventDefault() on a cancelable event.
1022-
event.cancelable = true;
1023-
10241017
this.playerInterface_.onEmsg(emsg);
10251018

10261019
// Additionally, ID3 events generate a 'metadata' event. This is a

0 commit comments

Comments
 (0)