0
我正在使用我的第一个Android应用程序,您在其中按下按钮并播放.wav声音,它在我运行phonegap服务器时效果很好应用程序来测试它,但是当我将它打包为带有phonegap的.APK并将其安装到手机上时,它不会播放.wav声音。使用PhoneGap测试PhoneGap时播放的声音,但使用PhoneGap制作时不会播放
$('.sound1').on('touchstart', function() {
var thissound = new Audio();
thissound.src = $(this).attr('key');
thissound.play();
});