+ 1
How i placed "onload" in an audio?
To start the audio when you open the page
8 Respostas
+ 3
Add the autoplay attribute to the <audio> tag.
+ 2
Have you tried:
audio.onload = function() {
audio.play();
};
+ 1
But when I have that played in android app
+ 1
Sorry, can you please explain your answer some more? I donât understand.
+ 1
Like in pc when u open the web page the audio play since u open the page but in the app of solo learn in android u cant do this with the attrib auto play due to an error I suppose so I decided use js , I tried use onload but doesn't work
+ 1
The error is due to the action play() needs to be "activated" by an user's action
+ 1
Hmm.... sorry Iâm not sure what to do.
+ 1
Don't worry that's because I'm doing this question too