Skip to content

Commit

Permalink
[hotfix] Fix inband event handling. Because of refactoring wrong even…
Browse files Browse the repository at this point in the history
…t was dispatched and inband events were never fired.
  • Loading branch information
dsilhavy committed Jul 24, 2020
1 parent 5344e42 commit 32b50c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/streaming/Stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ function Stream(config) {
}

function onInbandEvents(e) {
if (!streamInfo || e.streamInfo.id !== streamInfo.id) return;
if (!streamInfo || e.sender.getStreamInfo().id !== streamInfo.id) return;
addInbandEvents(e.events);
}

Expand Down
2 changes: 1 addition & 1 deletion src/streaming/StreamProcessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ function StreamProcessor(config) {
})[0];

const events = handleInbandEvents(bytes, request, eventStreamMedia, eventStreamTrack);
eventBus.trigger(Events.ADD_INBAND_EVENTS_REQUESTED, {sender: instance, events: events});
eventBus.trigger(Events.INBAND_EVENTS, {sender: instance, events: events});
}
}

Expand Down

0 comments on commit 32b50c6

Please sign in to comment.