+ 1
There have 2 audio but output 1 audio! What is problem?
<audio controls> <source src="http://www.sololearn.com/uploads/audio.mp3" type="audio/mpeg"> <source src="http://www.sololearn.com/uploads/audio.ogg" type="audio/ogg"> </audio>
6 ответов
+ 1
The browser plays just the first recognised audio file, not all the files.
https://www.sololearn.com/learn/HTML/2193/
If you want to have multiple audios, you can do something like
<audio controls>
<source src="http://www.sololearn.com/uploads/audio.mp3" type="audio/mpeg">
</audio>
<audio controls>
<source src="http://www.sololearn.com/uploads/audio.ogg" type="audio/ogg">
</audio>
+ 1
diffrent code. same output?
+ 1
it is very difcult for me so i need explain ans. ..
+ 1
thanks. so may be my post code is worng.
0
<audio src="http://www.sololearn.com/uploads/audio.mp3" controls>
Audio element not supported by your browser
</audio>
0
Shojib Hpk You 're welcome!