Search code examples
jqueryinternet-explorer-9mp3

Internet Explorer 9 compatible Jquery Mp3 player?


Can you please suggest me a mp3 jplayer link that would work in internet explorer 9 smoothly?i found one but it didn't work in IE 9 and gives following error message.

Error:-

Jplayer 2.1.0:id='jquery_jplayer_1':Error!
Media URL could not be loaded.
Check media URL is valid.
Context:Address of mp3 file that is placed remotely.

This is my code:-

</script>
<script type="text/javascript">
function loadmedia() {
  $('#jquery_jplayer_1').jPlayer('setMedia', {

      mp3: 'http://lecion.blob.core.windows.net/sixty-vocab-files//UploadSound/7fd752a6-97ef-4a99-b324-a160295b8ac4/43/Kalimba.mp3'
  });
}
$(document).ready(function () {
  $('#jquery_jplayer_1').jPlayer({
    ready: loadmedia,
    swfPath: 'Jplayer.swf',
    //solution: 'flash,html',
    errorAlerts: true,
    supplied: 'mp3',
   // wmode: 'window'
  });
});
 </script>
   <script src="jquery.jplayer.min.js" type="text/javascript" ></script>

I will be thankful to you.


Solution

  • How about using the HTML5 audio tag?

    <audio controls="controls">
      <source src="song.mp3" type="audio/mpeg" />
      Your browser does not support the audio element.
    </audio> 
    

    refer W3Schools for more info