以 HTML5 格式嵌入 Vimeo 视频的好方法是什么?
我不想嵌入 Flash 格式的 Vimeo 视频。如何将它们嵌入 HTML5 格式?
I don't want to embed Vimeo videos in Flash format. How do I embed them in HTML5 format?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在带有 Flash Player 的浏览器上,它使用以下代码以 HTML5 模式加载:
沙箱阻止 HTML iframe 标记访问包括 flash 在内的任何插件。
要允许 vimeo 按钮打开视频的 vimeo 网页,您需要“允许弹出窗口”权限。不需要播放视频。
On a browser with the Flash Player it loads in HTML5 mode with the following code:
The sandbox prevents the HTML iframe tag from accessing any plugins including flash.
To allow the vimeo button to open the vimeo web page for the video you need the 'allow-popups' permission. It's not needed to play the video.
他们实际上通过cookie启用了HTML5,所以我认为你不能直接链接到HTML5版本。这是他们用来在 Flash 和 HTML5 之间切换的 JS 代码:
编辑:
同样关于嵌入,官方博客文章指出:
Edit 2:
实际上,这是一个旧的说法,不再正确了。如果设置了上述 cookie,新嵌入实际上会在不支持 Flash(例如 iPad 或 iPod)的设备上自动使用 HTML5。
They actually enable HTML5 through cookies, so I don't think you can link directly to the HTML5 version. Here's the JS code they use to switch between Flash and HTML5:
Edit:
Also on embedding, the official blog post states:
Edit 2:
Actually, that is an old statement which is not true anymore. The new embeds actually use HTML5 automatically on devices that don't support Flash like the iPad or iPod, if the aforementioned cookie is set.