Solved

Audio player won't start songs automatically on my Android phone

Posted on 2016-07-25
3
77 Views
Last Modified: 2016-07-27
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
0
Comment
Question by:gabrielPennyback
3 Comments
 
LVL 4

Expert Comment

by:Justin Smith
ID: 41728675
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>
0
 
LVL 44

Accepted Solution

by:
Jackie Man earned 500 total points
ID: 41728897
Which browser you are using?

Autoplay on load is blocked by the browser by default.

If you are using Chrome on Android, you need to change the settings.

1. type chrome://flags and press enter in URL

2. Find "Disable gesture requirement for media playback" and enable this setting

Source: http://stackoverflow.com/questions/12587977/html5-audio-chrome-on-android-doesnt-automatically-play-song-vs-chrome-on-pc-d
0
 
LVL 1

Author Comment

by:gabrielPennyback
ID: 41732123
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
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
why no phone sync 11 43
Load data upon clicking a button 8 34
Asp in server side with Mssql Server 7 4 27
really easy css change help please 4 17
If your app took Google’s lash recently, here are the 5 most likely reasons.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
This video is in connection to the article "The case of a missing mobile phone (https://www.experts-exchange.com/articles/28474/The-Case-of-a-Missing-Mobile-Phone.html)". It will help one to understand clearly the steps to track a lost android phone.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question