Javascript to end music currently playing?

Clients open a popup and use the circle music player to select their track, but then they close the music selection popup and the music continues. I need it to stop. Any action/command I can trigger when the popup closes to stop the music?

Could you create an event in a workflow that when the popup is closed it stops the player?

i don’t believe the circle music player has an action to stop the player