I need help with <audio> | Sololearn: Learn to code for FREE!
+ 8

I need help with <audio>

How can I make the audio play after a few seconds? I want it to be invisible (transform:scale(0);) It shows me an error if I don't tap anything until the audio starts. How to avoid that? https://code.sololearn.com/WnBS4gucm9gY/?ref=app //Randomly chosen a audio

29th Jun 2019, 9:46 AM
ūüćá Alex Tu»ôinean ūüíú
ūüćá Alex Tu»ôinean ūüíú - avatar
5 Réponses
29th Jun 2019, 10:01 AM
Calvi’≤
Calvi’≤ - avatar
+ 5
Thank you.
29th Jun 2019, 10:03 AM
ūüćá Alex Tu»ôinean ūüíú
ūüćá Alex Tu»ôinean ūüíú - avatar
+ 5
Calvi’≤ how to make an delay for it? I tried to set autoplay to false , but it still starts when it is loaded.
29th Jun 2019, 10:10 AM
ūüćá Alex Tu»ôinean ūüíú
ūüćá Alex Tu»ôinean ūüíú - avatar
+ 5
Use setTimeout to call callback with insert embed code. https://code.sololearn.com/WX5qZeW4xcHm/?ref=app
29th Jun 2019, 10:19 AM
Calvi’≤
Calvi’≤ - avatar
+ 3
Calvi’≤ bro why I dont listen that music sounds I dont know what is the problem with is a device problem or anything everytime it happens
29th Jun 2019, 5:58 PM
Sayyam Jain
Sayyam Jain - avatar