我有以下代码来播放声音。然而,当我按下按钮时没有任何事情发生。声音文件位于资源文件夹中。在这方面需要帮助。声音不能在Titanium中播放
var playButton = Ti.UI.createButton({
title:'play',
borderRadius : 'black',
top:40,
right:65,
width:50,
height:50
})
playButton.addEventListener('click',function(e){
var sound = Titanium.Media.createSound({
sound : "1-0.wav"
});
sound.play();
})
哪里抄sound.wav文件? –