Vimeo API 与 IE7
我目前在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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