Link to home
Start Free TrialLog in
Avatar of John Carney
John CarneyFlag for United States of America

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.
<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>

Open in new window


Thanks!
John
Avatar of Justin Smith
Justin Smith
Flag of United States of America image

http://www.thesitewizard.com/webdesign/backgroundmusic.shtml

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>
ASKER CERTIFIED SOLUTION
Avatar of Jackie Man
Jackie Man
Flag of Hong Kong image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of John Carney

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