I try to play a game in android web view in mobile locally. But problem is that audio is not getting played at all. Actually Mozilla browser agent is used.
Codes written is as following.
var assetsPath = "";
manifest = [
{id: "ballhitground", src: "./sounds/ballhitground.ogg"},
{id: "bathitball", src: "./sounds/bathitball.ogg"},
{id: "stadium", src: "./sounds/stadium.ogg"},
{id: "strokes", src: "./sounds/strokes.ogg"},
{id: "effectimg", src: "img/effectimg.png"},
{id: "effectimg1", src: "img/effectimg1.png"},
{id: "effectimg2", src: "img/effectimg2.png"},
];
// preload.getResult('gameplaybtn');
createjs.Sound.alternateExtensions = ["mp3"];
preload = new createjs.LoadQueue(false, assetsPath);
window.preload=preload;
preload.installPlugin(createjs.Sound);
preload.addEventListener("complete", doneLoading); // add an event listener for when load is completed
preload.addEventListener("progress", updateLoading);
preload.loadManifest(manifest);
//===========
window.soundsObj.stadium=createjs.Sound.play("stadium");
window.soundsObj.stadium.play();
window.soundsObj.stadium.volume = 0.35;