+ 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 Respuestas
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