1

我真的需要一些帮助,我们正在尝试通过 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:

http://c.brightcove.com/crossdomain.xml

4

1 回答 1

0

原来是跨域问题

于 2011-12-20T10:15:36.947 回答