I have one problem. I wrote autoplay attribute in audio tag, but when I opened, it didn't work. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I have one problem. I wrote autoplay attribute in audio tag, but when I opened, it didn't work.

I posted of my problem photo. In my profile post section

23rd Sep 2020, 1:20 PM
Shahina Ismoilova
Shahina Ismoilova - avatar
10 Answers
23rd Sep 2020, 1:49 PM
Giriraj Yalpalwar
Giriraj Yalpalwar - avatar
+ 1
Hey Shahina Ismoilova I have seen your code photo tag is correct , no problem but Sometimes it takes time & sometimes it doesn't work as you says. So give multiple sources.
23rd Sep 2020, 1:28 PM
Giriraj Yalpalwar
Giriraj Yalpalwar - avatar
0
Please help me
23rd Sep 2020, 1:21 PM
Shahina Ismoilova
Shahina Ismoilova - avatar
0
Then what should I write to the second type attribute
23rd Sep 2020, 1:37 PM
Shahina Ismoilova
Shahina Ismoilova - avatar
0
Thanks. But it didn't work to. I wrote like these. <audio controls autoplay loop> <source src="1lion.mp3" type="audio/mpeg><source src="1lion.ogg" type="audio/ogg"> </audio>
23rd Sep 2020, 1:56 PM
Shahina Ismoilova
Shahina Ismoilova - avatar
0
No bro, Use different sources (different songs or any other audio) Ex: <source src="first song" type="mp3/ogg"> <source src="second song" type="mp3/ogg">
23rd Sep 2020, 2:00 PM
Giriraj Yalpalwar
Giriraj Yalpalwar - avatar
0
Thanks. Good to know I am girl not boy
23rd Sep 2020, 2:01 PM
Shahina Ismoilova
Shahina Ismoilova - avatar
0
Sorry, Shahina Ismoilova 😁
23rd Sep 2020, 2:02 PM
Giriraj Yalpalwar
Giriraj Yalpalwar - avatar
0
Not at all. But I think my name is girl's name
23rd Sep 2020, 2:03 PM
Shahina Ismoilova
Shahina Ismoilova - avatar
0
It's my habit to type "bro" , when I'm typing fast 😊
23rd Sep 2020, 2:05 PM
Giriraj Yalpalwar
Giriraj Yalpalwar - avatar