function audioOnOff(){
if(audio){
muteAllAudios();
audio = false;
}
else{
unmuteAllAudios();
audio = true;
}
settingsScreen();
}
function muteAllAudios(){
correctAnswerSound.muted = true;
wrongAnswerSound.muted = true;
boingSound.muted = true;
wisemanSound.muted = true;
professorSound.muted = true;
}
function unmuteAllAudios(){
correctAnswerSound.muted = false;
wrongAnswerSound.muted = false;
boingSound.muted = false;
wisemanSound.muted = false;
professorSound.muted = false;
我在webView中有一个按钮用于打开/关闭音频设置,但是当我关闭音频时,声音仍会在我的iOS应用程序中播放。解决方案是什么?