Is there a code to get multiple tracks to stop playing?

Is there a code where when going to a page, it stops all the tracks listed on the previous passage from playing, as opposed to having a separate piece of code for each track? I’m making use of having more than one track playing on a passage but it’s tedious having to do the codes for each track in the passages before and after that.

1 Like

In the documentation for the <<audio>> macro, you can stop all playing tracks, by using the :playing id. It should be the third example?

→ Stop playback of playing tracks
<<audio ":playing" stop>>
3 Likes

As noted by Manon, there’s the <<audio>> macro and its stop action, which can stop all playing tracks that are under its control via the special group ID :playing. I recommend this.

That said. There’s also the <<masteraudio>> macro and its stop action, which will stop all tracks—period, no exceptions. Not something done lightly.

3 Likes

Thanks, that seemed to work.

1 Like