Skip to content

Commit

Permalink
fix(FEC-13183): dismiss BPK session on stopped event (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
giladna authored May 24, 2023
1 parent e8aabdf commit 9532b54
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ protected void onLoad(final Player player, Object config, final MessageBus messa
stopStreamingSession();
}
});

this.messageBus.addListener(this, PlayerEvent.stopped, event -> {
log.d("PlayerEvent stopped: calling stopStreamingSession");
// Stop the session in case of Playback stop
stopStreamingSession();
});
}

private void addGeneralConfig(BroadpeakConfig bpConfig) {
Expand Down

0 comments on commit 9532b54

Please sign in to comment.