我在http://static.flowplayer.org/forum/1/29367上发布了我在使用 FlowPlayer jQuery 插件时遇到的问题,但我没有回应,所以我想我会在这里尝试更大的用户群... :)
我在使用 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/播客.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>
谢谢,蒂姆