“安全错误" code:" 1000'的音频API的例子 [英] 'Security error" code: "1000' in Audio API example

查看:189
本文介绍了“安全错误" code:" 1000'的音频API的例子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想重复从这里的例子,但我得到这个错误

I'm trying to repeat the example from here, but am getting this error:

Security error" code: "1000
 var fb = event.frameBuffer, 

我的文件夹中的一切都有777的权利,但它仍然是给我吧。我的Firefox版本是4.0,所以音频API功能应该可用。可能是什么问题?我复制了这些例子没有任何改变。任何建议将帮助,谢谢你。

Everything in my folder have 777 rights, but it's still is giving me it. My Firefox version is 4.0, so Audio API features should be available. What could be the problem? I've copied the example without any change. Any suggestion would help, thank you.

推荐答案

您必须确保您的音频和网页相同的起源,如果你正在做这从一个文件:/// URI,你必须通知Firefox不强求产地检查,在这里看到我们的注意:<一href=\"https://wiki.mozilla.org/Audio_Data_API#Security\">https://wiki.mozilla.org/Audio_Data_API#Security

You have to make sure your audio and web page are same origin, and if you're doing this from a file:/// URI, you have to tell Firefox to not force origin checks, see our note here: https://wiki.mozilla.org/Audio_Data_API#Security

这篇关于“安全错误&QUOT; code:&QUOT; 1000'的音频API的例子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆