homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

mp3 not playing locally
IE, Chrome

5+ Year Member

Msg#: 4566962 posted 5:43 am on Apr 22, 2013 (gmt 0)

I have an mp3 file which is ajaxed-in and plays automatically.

I'm testing locally. The file address is not the full url route, just filename, which is correct in circumstances.

Code for the mp3 is straight from Elizabeth Castro's updated Examples page.

On Windows, it's OK in Firefox, but not in IE9 and not inChrome. On a mac, OK in Firefox and Safari, but not Chrome.

Can someone explain why? Is it same reason for all browsers?
Any overrides possible ?




5+ Year Member

Msg#: 4566962 posted 7:30 am on Apr 26, 2013 (gmt 0)

A lot of links, especially media links using players/viewers designed for web play, will not function when viewing locally in some browsers. That can be expected and it has always been that way. For some it can be by design.

If you want to test locally, install a server on your computer. If using Linux you will find it quite easy if you enable Apache and install Webmin. On Windows you can enable IIS or install a PWS (older versions).

Then you visit your content at [localhost...]

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved