Vimeo API 与 IE7

发布于 2025-01-02 16:18:18 字数 224 浏览 4 评论 0原文

我目前在 IE7 上使用 Vimeo 框架时遇到问题。

我收到的第一个错误是 JSON 未定义。我能够通过添加仅适用于 IE7 的 JSON2 Javascript 文件来解决这个问题。

现在我收到以下错误: SCRIPT87:参数无效。 froogaloop.min.js,第 1 行字符 256

有问题的行就在这里:b.contentWindow.postMessage(a,f)

I'm currently having issues using the Vimeo framework on IE7.

The first error I was receiving was JSON is undefined. I was able to solve this by adding the JSON2 Javascript file for IE7 only.

Now I receive the following error:
SCRIPT87: Invalid argument.
froogaloop.min.js, line 1 character 256

The line in question is right here: b.contentWindow.postMessage(a,f)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

薄情伤 2025-01-09 16:18:18

postMessage 是 HTML5 功能,在 IE7 中不可用。

您可以尝试使用polyfill,例如: http://benalman.com/projects/jquery -postmessage-plugin/

编辑:或者您可以使用与 IE7 兼容的 Flash 嵌入代码,如下所述:http://developer.vimeo.com/player/embedding#universal-embed-code 并使用备用 API。

请注意,您必须包含 FlashVars 参数才能激活 API。以下是一些可能有帮助的提示:

http://vimeo.com/forums/topic:43266

http://vimeo.com/forums/topic:42631

postMessage is an HTML5 feature and it is not available in IE7.

You can try using a polyfill, for example this: http://benalman.com/projects/jquery-postmessage-plugin/

EDIT: Or you can use the Flash Embed Code which is compatible with IE7 as described here: http://developer.vimeo.com/player/embedding#universal-embed-code and use the alternate API.

Note that you have to include the FlashVars parameter to activate the API. Here are some tips that might help:

http://vimeo.com/forums/topic:43266

http://vimeo.com/forums/topic:42631

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文