0
我正在使用以下代碼播放聲音。聲音在模擬器上正常工作,但不適用於設備。這兩款設備都運行相同的iOS版本。設備上不播放聲音[Titanium]
有沒有辦法來調試這個錯誤?我怎樣才能解決這個問題 ?
var soundLabel = Ti.UI.createView({
backgroundColor:'red',
width:125,
height:40,
top:75,
right:340
});
soundLabel.addEventListener('click',function(e){
var sound = Titanium.Media.createSound();
sound.setUrl("/Sound/"+alphabet+".wav");
alert("HERE");
sound.play();
});