Skip to content

Commit 8015311

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 93a29b8 commit 8015311

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
@@ -1004,13 +1004,6 @@ shaka.media.MediaSourceEngine = class {
10041004
messageData: messageData,
10051005
};
10061006

1007-
// Dispatch an event to notify the application about the emsg box.
1008-
const eventName = shaka.util.FakeEvent.EventName.Emsg;
1009-
const data = (new Map()).set('detail', emsg);
1010-
const event = new shaka.util.FakeEvent(eventName, data);
1011-
// A user can call preventDefault() on a cancelable event.
1012-
event.cancelable = true;
1013-
10141007
this.playerInterface_.onEmsg(emsg);
10151008

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

0 commit comments

Comments
 (0)