HFP-1145 Fix always stop playing on play

pull/43/head
Frode Petterson 2019-01-02 11:47:35 +01:00
parent ca4d37c85c
commit e5ce754c92
1 changed files with 3 additions and 0 deletions

View File

@ -264,6 +264,9 @@ H5P.MemoryGame = (function (EventDispatcher, $) {
counter.increment();
});
card.on('audioplay', function () {
if (audioCard) {
audioCard.stopAudio();
}
audioCard = card;
});
card.on('audiostop', function () {