Skip to content

Commit

Permalink
add condition
Browse files Browse the repository at this point in the history
  • Loading branch information
harisha-swaminathan committed Aug 26, 2024
1 parent e774014 commit 65453bd
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 @@ -272,7 +272,7 @@ const onPlayerReady = (player, emeError) => {
player.on('ended', () =>{
handled = false;
player.one(['seek', 'play'], (e) => {
if (!handled) {
if (!handled && player.eme.sessions.length === 0) {
sendMockEncryptedEvent();
handled = true;
}
Expand Down

0 comments on commit 65453bd

Please sign in to comment.