+ 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>

27th Jul 2018, 11:59 AM
Shojib
Shojib  - avatar
6 Réponses
+ 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>
27th Jul 2018, 12:07 PM
giannismach
giannismach - avatar
+ 1
diffrent code. same output?
27th Jul 2018, 12:04 PM
Shojib
Shojib  - avatar
+ 1
it is very difcult for me so i need explain ans. ..
27th Jul 2018, 12:06 PM
Shojib
Shojib  - avatar
+ 1
thanks. so may be my post code is worng.
27th Jul 2018, 12:09 PM
Shojib
Shojib  - avatar
0
<audio src="http://www.sololearn.com/uploads/audio.mp3" controls> Audio element not supported by your browser </audio>
27th Jul 2018, 12:03 PM
Shojib
Shojib  - avatar
0
Shojib Hpk You 're welcome!
27th Jul 2018, 12:10 PM
giannismach
giannismach - avatar