我有一个非常简单的soundmanager2启动和运行示例,它在IOS中不触发:
$(document).ready(function(){
var introSound;
setupSoundManager();
function setupSoundManager(){
soundManager.setup({
// where to find the SWF files, if needed
url: 'swf/',
preferFlash: false,
我正在尝试使用SoundManager2作为iPhone Web的一部分,以便在使用jQuery提交表单后播放声音。播放的特定声音取决于结果,因此生成的页面设置一个变量来标识要播放的声音文件。
所有这些都可以在桌面上正常工作,但是当在iPhone上运行时,它会失败。
iPhone上的调试控制台显示它正在尝试.
1124: SMSound.play(): "ValidSound" is loading - attempting to play...
1124: SMSound.play(): "ValidSound" is starting to play
112