I need help with <audio> | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Respostas
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