Skip to content

Commit

Permalink
fix: pass emeError to handleWebKitNeedKeyEvent to avoid TypeError (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-barstow committed Jun 13, 2024
1 parent 7c3863d commit 463c839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ const eme = function(options = {}) {
// TODO it's possible that the video state must be cleared if reusing the same video
// element between sources
setupSessions(player);
handleWebKitNeedKeyEvent(event, getOptions(player), player.tech_)
handleWebKitNeedKeyEvent(event, getOptions(player), player.tech_, emeError)
.catch((error) => {
emeError(error);
});
Expand Down

0 comments on commit 463c839

Please sign in to comment.