html5 - Soundjs is not playing sound in iPad1 and Window Lumia Phone -


i new html5 developer, using soundjs library play audio in html5 web application. soundjs not able play sound in ipad1, window phone , of android mobile. seem not initialized audio plugin, that's hwy not able load file , dispatch complete event. using code (soundjs library import in script tag) :

                    if (!createjs.sound.initializedefaultplugins())                     {                         alert("return")                         return;                     }                      var audiopath = "assets/audio/";                     var manifest = [                         {id:"music", src:audiopath+"watersplash.mp3|"+audiopath+"watersplash.ogg"},                         {id:"thunder", src:audiopath + "ohh.mp3|"+audiopath + "ohh.ogg"}                     ];                      this.displaymessage.innerhtml = "loading audio";                     //var loadproxy = createjs.proxy(this.handleload, this);                     createjs.sound.addeventlistener("loadcomplete", createjs.proxy(this.handleload, this));                     createjs.sound.registermanifest(manifest);                       function handleload(data)                     {                        createjs.sound.play("music");                        this.displaymessage.innerhtml = "playing " + event.src;                     } 

in ipad1 , window phone, retrun case "createjs.sound.initializedefaultplugins()".

please me or suggest other library has work in mobile , system browser.

thanks....!

you may want review soundjs faq , known browser limitations in documentation. soundjs not supported in ios versions less 6 default because of extreme limitations in html audio functionality. can enable audio in older ios, not recommended. audio works varying degrees in android phones. windows phone has not directly tested, expect newer phones work. note audio on mobile devices requires user initiated event (touch) begin playback.

you may find soundjs mobile safe tutorial useful.

hope helps


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -