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:
function toggle_html5_player(obj, on) {
if (on) {
setCookie("html_player", 1, 365);
} else {
setCookie("html_player", 0, 365);
}
reload_page();
}
Edit:
Also on embedding, the official blog post states:
It only works on Vimeo.com right now, embed code will still be Flash
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.
发布评论
评论(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.