Question

I host a WAVE-file, which plays fine, it's URL is entered in Mobile Safari directly. Trying to embed it in a simple HTML page shows me a "can't play" icon:

What's wrong with my embed code?

<embed href="http://localhost/test.wav" type="audio/wav"/>
Was it helpful?

Solution

It was a server problem. Apache has a special mode for downloading the file. You need it for embedding the audio, as I posted above.

OTHER TIPS

MobileSafari does not support the embed tag. You can link to a supported audio file though, as you mention, and it will play using the native music player when a user presses the link.

This page has a list of supported filetypes.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top