# Little Audio Bug - When Using Multiple Players

**URL:** <https://forums.realmacsoftware.com/t/little-audio-bug-when-using-multiple-players/50762>\
**Category:** Elements\
**Created:** [September 3, 2025, 3:25pm UTC](https://forums.realmacsoftware.com/t/little-audio-bug-when-using-multiple-players/50762 "2025-09-03T15:25:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MichaelDroste](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/michaeldroste/32/37212_2.png) [@MichaelDroste](https://forums.realmacsoftware.com/u/MichaelDroste)\
**Post date:** [September 3, 2025, 3:25pm UTC](https://forums.realmacsoftware.com/t/little-audio-bug-when-using-multiple-players/50762/1 "2025-09-03T15:25:51Z")

</div>

I really really like what you’ve done with the audio players!!!

I really like that it loops!

Like the look and feel!

I have 70 large players open at WindyTown

Can you put in a cut off command when switching audio players?

Example: playing one track - listening scrolls down sees another they would like to hear…

clicks

Now both tracks are playing!!!

Needs an auto off when new recording is selected…

Please 🙏

-Mike 🙂

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [September 3, 2025, 6:07pm UTC](https://forums.realmacsoftware.com/t/little-audio-bug-when-using-multiple-players/50762/2 "2025-09-03T18:07:00Z")

</div>

I’ll chat with @ben tomorrow and see what we can do!

---

<div class="post-metadata">

**Author:** ![Doobox](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/doobox/32/32373_2.png) [@Doobox](https://forums.realmacsoftware.com/u/Doobox)\
**Post date:** [September 4, 2025, 1:31am UTC](https://forums.realmacsoftware.com/t/little-audio-bug-when-using-multiple-players/50762/3 "2025-09-04T01:31:55Z")

</div>

I put this in backend JS of my early audio player., which does the trick.

```javascript
const audioPlayers = document.querySelectorAll("audio");

function stopOtherPlayers(currentPlayer) {
	audioPlayers.forEach(player => {
		if (player !== currentPlayer && !player.paused) {
			player.pause();
		}
	});
}

audioPlayers.forEach(player => {
	player.addEventListener("play", function () {
		stopOtherPlayers(this);
	});

	player.addEventListener("ended", function () {
		this.currentTime = 0;
	});
});

```

---

<div class="post-metadata">

**Author:** ![ben](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/ben/32/28488_2.png) [@ben](https://forums.realmacsoftware.com/u/ben)\
**Post date:** [September 4, 2025, 6:47am UTC](https://forums.realmacsoftware.com/t/little-audio-bug-when-using-multiple-players/50762/4 "2025-09-04T06:47:16Z")

</div>

I’ve fixed this one, it’ll be included in the next build 🙂
