Hi

I have a simple link on a page to an mp3 file. We don't want anthing complicated, just the sound file to start playing/streaming. I have tested this in IE8, FF, Opera, Saf and Chrome in which it streams, opening a default player.

However, in IE7 I get a script error, even when I link straight through like this

Also it says "Downloading from site..." for ages, not opening a player - whereas all the others opened a player immediately.

I wonder if anyone can see anything that I am doing wrong, or perhaps try it in IE 7 for me?

Thanks in advance

Dani AI

Generated

A few focused checks that pick up where left off and echo ’s observation (working on another IE7) will usually find the problem quickly. If the file streams normally on other machines, the cause is almost always either browser/add-on configuration on the client or how the HTTP headers are being sent by the server.

Start by inspecting the HTTP response headers for the MP3. From the server you want a clear Content-Type: audio/mpeg and no Content-Disposition: attachment. A quick header check (replace with your URL) is:

curl -I "http://your.site/path/file.mp3"

HTTP/1.1 200 OK
Content-Type: audio/mpeg
Content-Length: 1234567
Accept-Ranges: bytes

If the Content-Type is wrong (or Content-Disposition forces attachment), change the server MIME mapping (Apache: AddType audio/mpeg .mp3; IIS: add .mp3 => audio/mpeg). Also confirm the server supports range requests (Accept-Ranges / 206 responses) and supplies Content-Length when possible — old IE versions behave better with those.

On the client side, isolate IE7 configuration: test the same URL on a different machine (or a clean VM). In IE7, disable all add-ons/plugins (Tools → Manage Add-ons) and try again; third-party players (RealPlayer, QuickTime) often inject handlers that trigger script errors. Check Windows file associations (Control Panel → Default Programs) so .mp3 opens with a sane player, clear Temporary Internet Files, and, if a script error appears, note the script URL/line — it usually points to an add-on or embedded player. Also review IE security zone settings for “File download” and “Automatic prompting for file downloads.”

If those checks pass but you still need broad compatibility, serve MP3s with correct headers (progressive download) or add a small embedded player fallback for old IE. Given IE7’s age and many quirks, upgrading clients or encouraging modern browsers is the most reliable long-term fix.

Recommended Answers

All 2 Replies

Hello.
Perhaps your problem is from your browser configuration.
I tested it with my Iexplorer 7 and its working.

Great - thanks very much - I suspect its something to do with my browser (its old, and the pc is tired!!!)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.