How do I get an audio clip to stop once another clip is being played? | XM Community
Skip to main content

I am using audio embedded in HTML from google drive. Looks something like this: .
I want to have three audio clips on a page, and I want only one playing at a time even if the pause button is not pressed. How can I adjust this or add Java that accounts for audio embedded via Google drive? I recently added this on for media from my library which worked:
"jQuery("audio").bind("play",function (){
 jQuery("audio").not(this).each(function (index, audio) {
  audio.pause();"
I am also experiencing a playback issue where only one or two clips will play once I press the button, sometimes they do not play at all. Maybe the player window is too small or the clickbox is misaligned or something?

Thank you ahead of time for the help!

Be the first to reply!

Leave a Reply