From e5ce754c92240581c5415ea4b09c194ecfa4eb07 Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Wed, 2 Jan 2019 11:47:35 +0100 Subject: [PATCH] HFP-1145 Fix always stop playing on play --- memory-game.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/memory-game.js b/memory-game.js index bf19a3e..4b63def 100644 --- a/memory-game.js +++ b/memory-game.js @@ -264,6 +264,9 @@ H5P.MemoryGame = (function (EventDispatcher, $) { counter.increment(); }); card.on('audioplay', function () { + if (audioCard) { + audioCard.stopAudio(); + } audioCard = card; }); card.on('audiostop', function () {