Open LazerChing opened 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
创建音频对象时,设置音量无效,播放时音量大小始终为1
demo如下 vivoProj.zip