Reputation: 587
I have this code that is working perfectly for Firefox but when I try to get IE to play the audio files Error (Playback was aborted)
I don't want to optimize my site for just one browser so am wondering what I'm doing wrong.
<html>
<HEAD>
<TITLE>...</TITLE>
</HEAD>
<BODY>
<H1 ALIGN="CENTER">...</H1>
<P ALIGN="CENTER"> <IMG SRC="../picture/1.jpg"></P>
<P ALIGN="CENTER"> ...</P>
<P ALIGN="CENTER"> <audio controls><source src="../audio/1.mp3" type="audio/mpeg"></audio></P>
<P ALIGN="CENTER"> ...</P>
<P ALIGN="CENTER"> <audio controls><source src="../audio/2.mp3" type="audio/mpeg"></audio></P>
<P ALIGN="CENTER"> ...</P>
<P ALIGN="CENTER"> <audio controls><source src="../audio/3.mp3" type="audio/mpeg"></audio></P>
<P ALIGN="CENTER"> ...</P>
<P ALIGN="CENTER"> <audio controls><source src="../audio/4.mp3" type="audio/mpeg"></audio></P>
</BODY>
</html>
I have edit the titles out. Why does IE Restrict scripts or active X controls?
Upvotes: 1
Views: 50
Reputation: 29685
It is a safety feature. As you are running the file locally (not on a server or trusted site), Internet Explorer blocks the ActiveX controls and scripts because it considers that they may unsafe or harmful to your computer. I guess the idea is that IE doesn't know if you developed that page yourself, or if you downloaded it from somewhere potentially dangerous.
In SuperUser there is a possible solution for this. It is from 2010, but it sill applies to IE11:
Upvotes: 1