vivominigame / issues

vivo小游戏问题反馈和统一回复入口
13 stars 9 forks source link

音频音量问题,未使用任何游戏引擎 #202

Closed LazerChing closed 4 years ago

LazerChing commented 4 years ago

创建音频对象时,设置音量无效,播放时音量大小始终为1

var innerAudioContext = qg.createInnerAudioContext();
innerAudioContext.src = "https://sanguo-cards-1256414185.cos.ap-guangzhou.myqcloud.com/remoteRes/sound/Majorcitymusic.mp3";
innerAudioContext.loop = true;
innerAudioContext.volume = 0.01;
innerAudioContext.play();
innerAudioContext.volume = 0.01;
console.error(innerAudioContext.volume);
setTimeout(()=>{
    innerAudioContext.volume = 0.01
    console.error(innerAudioContext.volume);
}, 1)

demo如下 vivoProj.zip