Sound tag not working in IE9

I am experimenting with a sound tag.

The file below works in Google Chrome, but not in IE9. I always get a "sound tag not supported". I also tried wav, flac, wma -> the same result.

I suspect that there may be a problem with the standby mode, but I can not find where to change it.

Can anyone help? Regards Georg

<html> <head> </head> <body> <audio controls="controls" src="c:\concerto.mp3" > audio tag not supported. </audio> </body> </html> 
+8
html5 internet-explorer-9 html5-audio
source share
3 answers

Add an HTML5 document type to the page and it should launch the standards mode in IE9. You should also add a title element to make the document valid :

 <!DOCTYPE html> <html> <head> <title>Add a title</title> </head> <body> <audio controls="controls" src="c:\concerto.mp3" > audio tag not supported. </audio> </body> </html> 

If you still have problems, try adding this meta tag to your head:

 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
+16
source share

If "audio" works in chrome, safari, etc., but not in IE, check your meta tags. I had one that referenced IE8, which stopped the "sound" from working. This was rather unpleasant until I found a problem with which the lights were on at that moment.

0
source share

IE plays files on your PC if you transfer the full path as the URL "file: // c: /concert.mp3" or only the name of the file is "concert.mp3" if the file is in the same folder as the html file . Firefox also requires a full path for files in other folders, while Chrome seems to add "file: //" if it is not specified in the URL. This is a problem if you want to use local files if they are in other folders. FileAPI does not allow you to find the file path.

0
source share

All Articles