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

6/29/2019 9:46:42 AM

🍇 Alex Tușinean 💜

5 Answers

New Answer

+5

Use embed https://code.sololearn.com/WHQmb1R2Zt4J/?ref=app

+5

+5

Calviղ how to make an delay for it? I tried to set autoplay to false , but it still starts when it is loaded.

+5

Use setTimeout to call callback with insert embed code. https://code.sololearn.com/WX5qZeW4xcHm/?ref=app

+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