Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

Playing audio via object tag not working in IE11

$
0
0

Hi All,

Observing issue with IE11 when tried to play audio using object tag(due to some compatibility reasons I cant use HTML5 audio tag).

Below is the code snippet:


<object type="audio/mpeg" data="${mediaPath}">
<param name="src" value="${mediaPath}" />
<param name="ShowControls" value="0" />
<param name="loop" value="${repeat}"/>
</object>

The above code works only with 'AUDIO__MP3 Moniker Class' plugin. If the plugin is not available/enabled with IE an error thrown in the logs saying 'undefined' and no audio is played. Even when there are plugins that are capable of playing the audio. Ex: Quicktime, windows media player.

Could you please help me in this?

Thanks,

Abhishek


Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>