Vimeo - 嵌入在 IE 中不起作用
我为客户开发了一个页面,但发生了一些非常奇怪的事情: http://cpdlectures.com/IStructE/Default.aspx
此 Vimeo 视频可以在 Chrome、Mozilla 等内部运行。在 IE 中不起作用。
我一开始以为可能是脚本错误什么的,所以:
- 我按F12打开开发者工具,
- 点击脚本,
- 刷新页面看JS代码执行,
- 视频正常了!
关闭开发者工具,刷新后视频仍然有效。关闭浏览器,重新打开,又坏了,不打开开发者工具刷新,还是坏了。
什么?微软现在正在其浏览器中实施观察者效应吗?
怎么会这样呢?
I've developed a page for a client and something really weird is happening:
http://cpdlectures.com/IStructE/Default.aspx
This Vimeo video works inside of Chrome, Mozilla etc. But it doesn't work in IE.
I initially thought it might be scripting error or something, so:
- I hit F12 to open my developer tools,
- Click Script,
- Refresh page to watch the JS code execution,
- Video works!
close Developer tools, video still works after refresh. Close the browser, reopen, broken again, refresh without opening developer tools, still broken.
What? Are Microsoft implementing the Observer effect into their browsers now?
How can this be?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
就我而言,问题在于更新 Flash!
请参阅上面的 Vimeo 和下面的 Youtube 的打印内容 (WinXP - IE8)。上传之前和之后。
之前:
之后:
In my case, the problem was updating the Flash!
See the print with Vimeo above and Youtube below (WinXP - IE8). Before and after upload.
Before:
After:
我已经在 IE9 中测试了您提供的链接,视频播放正常。然后,我将 IE 工具栏中的浏览器模式更改为在 IE8 和 IE7 中呈现,并且视频在这两种浏览器模式下都能正确播放。我认为您可能有该网站的缓存版本,建议清除 IE 浏览器缓存。
工具>互联网选项>常规选项卡>浏览历史>删除...>>确保选择“Internet 临时文件”。
如果这不起作用,您能否让我们知道您正在使用的 IE 版本,并可能提供您的代码示例?
I have tested the link you provided in IE9 and the video played fine. I then changed the Browser Mode in the IE Toolbar to render in IE8 and IE7 and the video played correctly in both those browser modes. I think you may have a cached version of the website and suggest clearing your IE browser cache.
Tools > Internet Options > General Tab > Browsing History > Delete... > Make sure "Temporary Internet Files" is selected.
If that doesnt work could you let us know what version of IE you are using and perhaps provide a sample of your code?
我有类似的要求,我正在使用 Froogaloop 将事件就绪处理程序添加到 Vimeo iframe。
该视频最初是隐藏的,但当用户单击自定义启动屏幕上的播放按钮时会播放该视频。
该问题仅出现在 IE 中(尝试了 8 - 10)。其他浏览器运行良好。
事实证明,如果视频最初没有隐藏(不显示),则没有问题。
作为一个快速解决方案,我将视频从屏幕上偏移了。窗口准备好后,我将视频移回视图中,同时隐藏它。这修复了使用 Froogaloop 在 IE 中未触发玩家就绪事件的问题。
I had a similar requirement, and I'm using the Froogaloop to add the event ready handler to the Vimeo iframe.
The video is initially hidden, but plays when user clicks on the play button on a custom splash screen.
The problem only occurred in IE (tried 8 - 10). Other browsers worked perfectly.
Turns out IF the video is not initially hidden (display none), there is no issue.
As a quick fix, I've offset the video from the screen. Upon window ready, I move the video back into view while hiding it simultaneously. This fixed the player ready event not firing in IE, using Froogaloop.