【发布时间】:2011-08-18 11:46:14
【问题描述】:
我真的需要一些帮助,我们正在尝试通过 https 使用我们的播放器。我正在检测协议,然后将secureConnections设置为true,如果它是https但是它仍然抛出一个SecurityError,这里是设置代码。
var config:Object = {};
config.playerID = dataProxy.getDataResource(SettingsKeys.PLAYER_ID);
config.labels = dataProxy.getStructureResource(SettingsKeys.LABELS_XML);
config.width = videoPlayer.stage.stageWidth;
config.height = videoPlayer.stage.stageHeight;
config.secureConnections = LocationUtil.isHttps().toString();
videoPlayer.configuration = config;
然后将其传递给播放器!
playerWrapper = new BrightcovePlayerWrapper(new BrightcovePlayer(_configuration));
当我收到安全错误时,我实际上可以在 url 中看到 secureConnections=true 为什么我在部署到 https 并设置所需的变量时仍然收到 SecurityError?
编辑:
SecurityError:错误 #2047:违反安全沙箱:父级:https://sadmin.brightcove.com/viewer/us20110817.1104/federatedVideoUI/BrightcovePlayer.swf 无法访问 https://mydomain.com/VideoTour/Application.swf。
我可以确认它从以下位置加载了以下 crossdomain.xml:
【问题讨论】:
-
还要粘贴错误的详细信息吗?它们可能有用。
-
这可能是 crossdomain.xml 的问题吗?
-
谢谢是跨域问题
标签: flash actionscript-3 https brightcove