John Carney
asked on
Audio player won't start songs automatically on my Android phone
I have a series of each of which has its own page with code that should make the song start playing automatically but it doesn't. Here's the code I'm using, what can I add or modify that will make the song start playing on load or perhaps within 2 seconds.
Thanks!
John
<audio src="Songs/Man Of My Words.mp3" controls>
<embed
src="Songs/Man Of My Words.mp3"
width="360"
height="90"
loop="false"
autostart="true" />
</audio>
Thanks!
John
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi Jackie, thanks. I couldn't find it at first because I was looking for the words "Disable gesture requirement for media playback." On a second scroll, I happened to notice "gesture requirement for media playback," which was enabled and all I had to do was disable it. And that did it!
Thanks again, John
Thanks again, John
This might help a little.
Or try this code:
try this html5 code.....
<html>
<body>
<audio controls autoplay>
<source src="zui you ji.mp3" type="audio/mpeg">
</audio>
</body>
</html>