【问题标题】:Using the brightcove player in ActionScript over https通过 https 在 ActionScript 中使用 Brightcove 播放器
【发布时间】: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:

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

【问题讨论】:

  • 还要粘贴错误的详细信息吗?它们可能有用。
  • 这可能是 crossdomain.xml 的问题吗?
  • 谢谢是跨域问题

标签: flash actionscript-3 https brightcove


【解决方案1】:

原来是跨域问题

【讨论】:

    猜你喜欢
    • 2014-08-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-09-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-12-14
    相关资源
    最近更新 更多