Autoplay | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 24

Autoplay

Hi every one, for playing music automatically, audio tag doesn't work in mobile phones, I used iframe instead, but I think recently this feature of iframe got blocked! I used embed tag too but still doesn't work. is there any way else to play music automatically?

8th Aug 2019, 1:50 PM
Sheida Hedayati
Sheida Hedayati - avatar
16 Answers
+ 9
Sheida Hedayati I know it's too late but you might wanna check this out https://code.sololearn.com/WsuKTARh0Y2x/?ref=app If it doesn't work, or if you want more precise control, then use the Web Audio API https://code.sololearn.com/W8ODQlIstFcN/?ref=app
15th Aug 2019, 2:09 PM
Moses Odhiambo
Moses Odhiambo - avatar
+ 16
Jane Delphine So bad😔 thanks for answering 🌹
8th Aug 2019, 2:29 PM
Sheida Hedayati
Sheida Hedayati - avatar
+ 15
adulu7299 thanks 😊Calviղ could u please help me?
8th Aug 2019, 4:05 PM
Sheida Hedayati
Sheida Hedayati - avatar
+ 13
Moses Odhiambo wow finally, you did it😊👏 thanks a lot my talented bro. I was about to be disappointed 😁🌼🌸🌼🌸
15th Aug 2019, 3:45 PM
Sheida Hedayati
Sheida Hedayati - avatar
+ 12
BroFarOps thank you so much🌸😊, I read them but It didn't help me😔
8th Aug 2019, 4:15 PM
Sheida Hedayati
Sheida Hedayati - avatar
+ 10
BroFarOps I used iframe tag before, but I think It hasn't worked since 2 or 3 weeks ago. and also the second code that you sent, didn't work on my mobile phone.
8th Aug 2019, 3:25 PM
Sheida Hedayati
Sheida Hedayati - avatar
8th Aug 2019, 3:09 PM
BroFar
BroFar - avatar
+ 7
Hi Sheida Hedayati. The auto play works. Checkout this code. https://code.sololearn.com/W1re5vPnPu4z/?ref=app
8th Aug 2019, 2:18 PM
Jella
Jella - avatar
+ 5
Here is the thread which I originally thought would help https://www.sololearn.com/Discuss/1914195/?ref=app
8th Aug 2019, 4:04 PM
BroFar
BroFar - avatar
+ 5
Sheida Hedayati I guess Sololearn has block all the autoplay from html, my autoplay audios/videos no longer autoplay on Android phone. 😫
9th Aug 2019, 6:54 AM
Calviղ
Calviղ - avatar
+ 4
check out for a guy named Calviղ. he can definitely help 😉
8th Aug 2019, 3:35 PM
Aditya
Aditya - avatar
+ 3
Youtube autoplay policy have made it bad😞😞.. Is there any way to auotplay youtube video in iframes else that using jQuery?
9th Aug 2019, 5:08 AM
Manas Ranjan
Manas Ranjan - avatar
0
Hi
23rd Nov 2019, 8:35 PM
Tharan Tharan
Tharan Tharan - avatar
- 1
huh
10th Aug 2019, 4:18 PM
pejuang cinta
pejuang cinta - avatar
- 3
no,initial-scale=1,maximum-scale=1"> <link href="https://z-m
9th Aug 2019, 2:04 AM
nine king
nine king - avatar
- 4
facebook
9th Aug 2019, 2:05 AM
nine king
nine king - avatar