如何使用Flash CC画布项目在iPad上播放音频

问题描述:

我正在使用flash cc html5项目类型。我建立了我的项目并在桌面上进行测试,并且工作正常。一旦在ipad上测试,它不会播放音频。它适用于Android设备,但不是我的iPad 4.我在我的Flash项目中使用MP3文件。如何使用Flash CC画布项目在iPad上播放音频

我试过了safari &我的ipad上的Chrome既没有播放我的文件中的音频。

链接到我的文件。

http://dev.wisc-online.com/prototypes/TestJosh/cis3405_html5.html http://dev.wisc-online.com/prototypes/TestJosh/cis3405_html5.js

+0

你有没有尝试[远程调试](https://*.com/questions/20408110/debug-ipad-safari-with-a-pc)在Safari中看到错误消息(如果有的话)你得到? – K3N 2015-03-16 09:55:06

+0

不,我没有尝试过。但我确实知道了。我不得不通过按钮上的代码启动音频。 soundJS。你不能像闪光灯那样将它添加到闪光灯的时间轴上。 – CsharpBeginner 2015-03-16 14:21:05

+0

Ill为任何有兴趣的人提供代码。 – CsharpBeginner 2015-03-16 14:21:29

取而代之的将时间轴帧上的声音,好像我是用闪光灯做你必须通过代码来播放音频得到它配备闪光灯CC HTML5项目在iPad上玩。此外,它现在需要通过点击或触摸事件触发。

createjs.Sound.registerPlugins([createjs.WebAudioPlugin, 
createjs.FlashAudioPlugin]); 
createjs.Sound.alternateExtensions = ["mp3"]; 
createjs.Sound.registerSound("sounds/slide1_01.mp3", "page1"); 
createjs.Sound.registerSound("sounds/slide2.mp3", "page2"); 
createjs.Sound.registerSound("sounds/ending.mp3", "page3"); 

var Vpage1 = createjs.Sound.play("page1"); 
var Vpage2 = createjs.Sound.play("page2"); 
var Vpage3 = createjs.Sound.play("page3"); 

this.Next.addEventListener("click", fl_ClickToGoToAndStopAtFrame_7.bind(this)); 

function fl_ClickToGoToAndStopAtFrame_7() { 
    createjs.Sound.stop(); 
    this.gotoAndStop(1); 
    Vpage2.play(); 
}