I am trying to finalize some music in a game and get consistent playback across browsers. I am seeing inconsistency. I originally used playMusic and stopMusic, but it seemed like on IE, once music was stopped, it would not reload.
So I switched over to testing whether music was already playing, and just pausing it. This works well on many browsers, but it seems like Firefox ignores cc.AudioEngine.getInstance().isMusicPlaying(), so it never pauses.
Please see this link and look at the console log - you can see that the test fails on Firefox, yet you can hear the music is indeed playing:
Please let me know if anyone has a recommendation here.