+ 2
How do you make a list of audio files?
I want to created a list of audio files to play.. when I used two different sources for the audio only one play.. also I tried to use two new audio tags yet one played but the other didn't.. any help please
3 ответов
+ 9
The <source> tag can be used to link multiple sources but if your browser support the first type, it will play just the first audio file!
If you want to play two audio at the same time, Javascript is the best solution, here a complete and short explanation: https://stackoverflow.com/questions/11652197/play-multiple-sound-at-the-same-time
The example above uses the play( ) method to play both files at the same time and create a source element through document.createElement('source')
Another good way (easiest maybe) might be using the "controls" attribute, i just tried it and it works fine:
<audio src = "" controls></audio>
<audio src = "" controls></audio>
0
this what I did which is similar to the above but only the first one comes
<audio controls loop>
<source src="Bluetooth/heyheymaster.mp3" type="audio/mpeg">
</audio><br>
<audio control loop>
<source src="bluetooth/dhaar.mp3" type="audio/mpeg">
</audio>
0
I'm using html