0

I have two audio files on the page and I would want the user to listen to just one audio at once while disabling the other. I think some kind of javascript needs to be inserted.

 <audio controls="" controlsList="nodownload">
                      <source src="audio/audio1.mp3" 
                      type="audio/mpeg">
                      Your browser does not support the
                      audio element. </audio>
 <audio controls="" controlsList="nodownload">
                      <source src="audio/audio2.mp3" 
                      type="audio/mpeg">
                      Your browser does not support the
                      audio element. </audio>

Thanks in advance

Shubham Kumar
  • 129
  • 1
  • 9
  • "What have you tried?" – Martijn Sep 18 '18 at 14:36
  • Possible duplicate of [Javascript to stop playing sound when another starts](https://stackoverflow.com/questions/43430897/javascript-to-stop-playing-sound-when-another-starts) –  Sep 18 '18 at 14:40

0 Answers0