如何针对 Player 10.1 Beta 进行开发?
我一直在等待闪存能够访问原始音频数据的那一天。现在就是这一天,但我不知道如何让 10.1 在 CS4 中工作。我安装了 10.1,并且有一个函数绑定到麦克风的“SampleDataEvent.SAMPLE_DATA”,但我的“micSampleData”函数没有被调用。
var mic = Microphone.getMicrophone();
Security.showSettings(SecurityPanel.MICROPHONE);
mic.setUseEchoSuppression(true);
mic.setLoopBack(true);
mic.rate = 44;
function micActivity(event:ActivityEvent):void
{
trace("micActivity: " + event);
}
function micStatus(event:StatusEvent):void
{
trace("micStatus: " + event);
}
function micSampleData(event:SampleDataEvent):void
{
trace("micSampleData: " + event);
}
mic.addEventListener(ActivityEvent.ACTIVITY, micActivity);
mic.addEventListener(StatusEvent.STATUS, micStatus);
mic.addEventListener(SampleDataEvent.SAMPLE_DATA, micSampleData);
I've been waiting for the day that flash gets access to raw audio data. That day is now, but i'm not sure how to get 10.1 working in CS4. I have 10.1 installed and a function bound to the mic's "SampleDataEvent.SAMPLE_DATA" but my "micSampleData" function is not being called.
var mic = Microphone.getMicrophone();
Security.showSettings(SecurityPanel.MICROPHONE);
mic.setUseEchoSuppression(true);
mic.setLoopBack(true);
mic.rate = 44;
function micActivity(event:ActivityEvent):void
{
trace("micActivity: " + event);
}
function micStatus(event:StatusEvent):void
{
trace("micStatus: " + event);
}
function micSampleData(event:SampleDataEvent):void
{
trace("micSampleData: " + event);
}
mic.addEventListener(ActivityEvent.ACTIVITY, micActivity);
mic.addEventListener(StatusEvent.STATUS, micStatus);
mic.addEventListener(SampleDataEvent.SAMPLE_DATA, micSampleData);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 10.1 的独立播放器发布之前,您必须在浏览器中进行测试。当前的测试版仅适用于浏览器插件。
You will have to test in your browser until a standalone player for 10.1 is released. The current betas are for the browser plugins only.