How to get mp3 files to play in iPhone Safari web browser?
Posted
by grrussel
on Stack Overflow
See other posts from Stack Overflow
or by grrussel
Published on 2010-02-10T22:07:46Z
Indexed on
2010/04/14
9:23 UTC
Read the original article
Hit count: 404
How can I get an MP3 audio file to play in iPhone Safari (OS 3.1)?
Currently, I am generating HTML e.g.
<a href="file.mp3"><img src="sound.png" alt="Play audio"/></a>
to play the file on clicking on the nested image. This works on Safari on OSX, but not on the iPhone. There, the content of the file is shown as text, but it does not appear to be a mime-type problem when checked with Live HTTP Headers from Firefox.
I have found approaches referenced here. These require the Safari Plugins setting to be on in the preferences, which is why it did not previously work for me.
© Stack Overflow or respective owner