HTML5 Sound Plugin?

I am currently using to power sounds in my web application. SoundManager uses Flash, which sometimes crashes, killing sounds. Is there a reliable plugin available in jQuery that uses sounds using HTML5 rather than Flash?

My settings:

soundManager.url = '/misc/soundmanager2/v20111220/';    // SoundManager fails if the SWF is loaded from the CDN
soundManager.debugMode = true;
soundManager.flashVersion = 9;
soundManager.useFlashBlock = false;
soundManager.useHTML5Audio = true;
+5
source share
4 answers

SoundManager can also play pure HTML5 sound.

SoundManager 2 gives you one powerful API that supports both new and old, using HTML5 audio, where it is supported, and, if necessary, an additional Flash reserve. Ideally, when using SoundManager 2, the sound "just works."

Flash () . , () . ..

"" SoundManager2 HTML5 , :

soundManager.preferFlash = false;

HTML5audio. true -, MP3/MP4 , HTML5 - .

.

+7

jPlayer.

jPlayer - (GPL/MIT) -, JavaScript. jQuery, jPlayer - -. API- jPlayer -, jPlayer.

$(document).ready(function(){
 $("#jquery_jplayer_1").jPlayer({
  ready: function () {
   $(this).jPlayer("setMedia", {
    m4a: "/media/mysound.mp4",
    oga: "/media/mysound.ogg"
   });
  },
  swfPath: "/js",
  supplied: "m4a, oga"
 });
});

+2

HTML5 Audio, .

+1

-, SoundManager2 w/jQuery $.fn. - / . jPlayer , (, RTMP, HTML5), , ..:

https://github.com/APMG/APMPlayer

0
source

All Articles