Multiple audio players on one page

Question:

In my website, I have a page with more than one player (one multiplayer and one single player). They both do their job nicely, but it is possible to let them play together, which is of course not desirable. How could I make an exclusive per player, so that only one player can work at the time?

Answer:

Currently, you are embedding the player to your webpage with iframe: https://amazingaudioplayer.com/how-to-insert-an-html5-audio-player-to-your-webpage-with-iframe/. This is not supported in iframe mode.

If you embed the player by directly placing the codes into the page: https://amazingaudioplayer.com/how-to-add-html5-audio-player-to-your-webpage/ and https://amazingaudioplayer.com/how-to-add-multiple-html5-audio-players-to-one-webpage/

Then, the player will pause other players on the same page when playing.

Comments are closed.