4th Apr 2018, 6:33 AM
2+2=4
2+2=4 - avatar
5 Respuestas
+ 3
If you are viewing from a mobile device, i do not think autoplay works, it will only work from a computer
4th Apr 2018, 6:44 AM
Memphis Reigns
Memphis Reigns - avatar
+ 2
here is your solution from now you canhttps://www.sololearn.com/Discuss/1291724/?ref=app
19th May 2018, 8:33 PM
Yesh Jadav
Yesh Jadav - avatar
+ 1
https://stackoverflow.com/questions/34837930/audio-tag-autoplay-not-working-in-mobile
4th Apr 2018, 6:43 AM
Emma
+ 1
can ny1 suggest a hack for it?
4th Apr 2018, 6:54 AM
2+2=4
2+2=4 - avatar
+ 1
Hi 2+2 You have to launch audio using a touch event. There are also some particularities with looping. Here is what I found on Stack exchange from güney-saramalı which seems to work. "If you play() the audio with gesture for 1 time then you would be able to pause() set currentTime = 0; and then play() again without user gesture. The code below creates an endless loop for mobile and desktop without any problem" http://cr8code.co/editor.php?workid=82bc38eb384ee5ea21b5197421a15d1c
4th Apr 2018, 7:25 AM
Mike Choy
Mike Choy - avatar