From 65453bd0d164ccfad68a89dd4b8c0a4de68bbf10 Mon Sep 17 00:00:00 2001 From: hswaminathan Date: Sun, 25 Aug 2024 22:39:52 -0400 Subject: [PATCH] add condition --- src/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugin.js b/src/plugin.js index cdbd9ab..9b591ba 100644 --- a/src/plugin.js +++ b/src/plugin.js @@ -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; }