Flash FlowPlayer crossdomain.xml 错误
我在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否尝试使用 *.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.
http://static.flowplayer.org/forum/1/29367
http://static.flowplayer.org/forum/1/29367