Music on my web page plays in firefox although it wont play in google chroome or internet explorer.


music on web page plays in firefox although wont play in google chroome or internet explorer.

 

this code im useing in edge.


// creation complete
try {
    yepnope({
        load: "http://simonwidjaja.github.com/edgecommons/live/edgecommons-0.6.0.js",
        callback: function() {
    // load sound manifest (e.g. in creationcomplete)
    var assetspath = "media/";
    ec.sound.setup(
         [
                {src: assetspath + "kim adams & house cats - stormy monday.mp3|" + assetspath + "kim adams & house cats - stormy monday.ogg", id: 'kim adams & house cats - stormy monday'},
            {src: assetspath + "kim adams & house cats love me.mp3|" + assetspath + "kim adams & house cats love me.ogg", id: 'kim adams & house cats love me'},
            {src: assetspath + "kim_adams_and_the_house_cats_throw_me_a_bone.mp3|" + assetspath + "kim_adams_and_the_house_cats_throw_me_a_bone.ogg", id: 'kim_adams_and_the_house_cats_throw_me_a_bone'},
         ],
         function(){ ec.info("sound setup finished", "sound edge commons"); }
    );

 


            }
    });
}
catch(error) {
    console.error("sw", error);
}

 

// composition ready

hi there, starters, should remove spaces in file , id names.

 

this bad form:

kim adams & house cats - stormy monday.mp3

 

also, if you're testing locally, might cross-domain errors loading audio. have tested files on server?

 

here example works me on chrome, ff , safari (click grey buttons play short sounds):

http://www.timjaramillo.com/code/edge/sound_edge_commons

http://www.timjaramillo.com/code/edge/_source/sound_edge_commons.zip

 

i have noticed audio won't play, when refresh, play. not sure if issue ec library ...



More discussions in Edge Animate CC


adobe

Comments