Flash FlowPlayer crossdomain.xml 错误

发布于 2024-08-09 14:57:12 字数 1090 浏览 6 评论 0原文

我在 http://static.flowplayer 上发布了 FlowPlayer jQuery 插件遇到的问题。 org/forum/1/29367,但我没有回复,所以我想我应该在这里尝试更大的用户群...:)

我遇到了 crossdomain.xml 和音频插件的问题播放 mp3。

播放器加载正常,但当我单击“播放”按钮时出现这样的错误。当我单击“继续”时,MP3 文件会加载并播放。错误再次出现,所以我单击继续,一切正常。我怎样才能阻止错误出现?

SecurityError:错误 #2122:安全沙箱违规:Sound.id3: http://www.XXXXXX.com/global/swf/flowplayer.audio-3.1.2.swf无法访问http://serving.XXXXXX.com/assets/podcast.mp3。需要策略文件,但加载此媒体时未设置 checkPolicyFile 标志。 在 flash.media::Sound/get id3() 在 org.flowplayer.audio::AudioProvider/onId3()

处,serving.XXXXXX.com 根目录中的 crossdomain.xml 是:

<?xml version="1.0" encoding="utf-8"?>
<cross-domain-policy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.adobe.com/xml/schemas/PolicyFile.xsd">
    <allow-access-from domain="*" />
</cross-domain-policy>

谢谢, 蒂姆

I posted a problem I'm having with the FlowPlayer jQuery plugin at http://static.flowplayer.org/forum/1/29367, but I've had no response, so I thought I'd try the larger user base here... :)

I am having a problem with crossdomain.xml and the audio plugin to play an mp3.

The player loads ok but I get an error like this when I click the Play button. When I click Continue the MP3 file loads and plays. The error comes up once more so I click Continue and all is ok. How can I stop the errors coming up?

SecurityError: Error #2122: Security sandbox violation: Sound.id3:http://www.XXXXXX.com/global/swf/flowplayer.audio-3.1.2.swf cannot accesshttp://serving.XXXXXX.com/assets/podcast.mp3. A policy file is required, but the checkPolicyFile flag was not set when this media was loaded.
at flash.media::Sound/get id3()
at org.flowplayer.audio::AudioProvider/onId3()

My crossdomain.xml in the root of serving.XXXXXX.com is:

<?xml version="1.0" encoding="utf-8"?>
<cross-domain-policy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.adobe.com/xml/schemas/PolicyFile.xsd">
    <allow-access-from domain="*" />
</cross-domain-policy>

Thanks,
Tim

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

晌融 2024-08-16 14:57:12

您是否尝试使用 *.xxxxx.com 而不是仅使用 *?我也有过这样的经历:跨域无法在本地进行测试,但在 Web 服务器上运行得很好。

Did you try using *.xxxxx.com instead of only *? I have also had experiences where crossdomain does not work testing locally but operates just fine from a web server.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文