0

I used autoplay attribute but it doesn't seams to play automatically...

<audio src="xyz. mp3" controls autoplay> </audio>

17th Sep 2016, 4:02 PM
Kiran Borade
Kiran Borade - avatar
5 Respostas
+ 2
Sololearn CodeEditor prevents autoplay and looping. I send them a bug report but they replyed me that this is a mobile systems limitation (n.b. probably to prevent uncontrolled data traffic) and they can't do anything about it. try your code on your local server xampp/Lamp to test its functionality. or try the online editor at http://www.w3schools.com/html/html5_audio.asp
30th Dec 2016, 5:48 PM
seamiki
seamiki - avatar
+ 1
<audio controls autoplay> <source src="horse.mp3" type="audio/mpeg"> audio element not supported by your browser </audio>
17th Sep 2016, 7:58 PM
ShivaKumar Karantothu
ShivaKumar Karantothu - avatar
0
Does it play at all?
17th Sep 2016, 5:32 PM
Ogochukwu Nduka
Ogochukwu Nduka - avatar
0
it doesn't autoplay but still gives the play/pause button
25th Sep 2016, 10:39 AM
Alec Parker
0
you can add more than one type of the same audio i mean mp3,ogg or wav because browsers does not all play the same type of audios
8th Oct 2016, 12:56 AM
Otmane Guourch
Otmane Guourch - avatar