自动隐藏时显示嵌入的 YouTube 播放器的进度条 [英] Show embed YouTube player's progress bar when auto hide
问题描述
YouTube 将播放器更改为黑色样式.
YouTube change their player to black style.
在 YouTube 网站上观看视频时,鼠标移开播放器时播放器栏会消失,但仍保留进度条,如下所示:
When you watching a video on YouTube website, the player bar will disappear when you mouse out the player, but still keep the progress bar, like this:
所以我尝试在网页上嵌入视频,但是当我设置 autohide=1 时,播放器栏完全消失了,包括进度条.
So I try to embed the video on web page, but when I set autohide=1, the player bar totally gone, include progress bar.
有什么想法可以像在 youtube 网站上那样做吗?
Have any idea to do that like on youtube website?
<object width="425" height="349">
<param name="movie" value="http://www.youtube.com/v/u1zgFlCw8Aw?version=3&hl=en_US&rel=0"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/u1zgFlCw8Aw?autohide=1&enablejsapi=1&iv_load_policy=3&version=3&hl=en_US&rel=0" type="application/x-shockwave-flash" width="425" height="349" allowscriptaccess="always" allowfullscreen="true"></embed>
</object>
2011-10-28 更新
我将自动隐藏设置为 3(在 Youtube 播放器文档中未提及),这就是我想要的.
Updated 2011-10-28
I set autohide to 3 (not be mentioned at Youtube player document), that's what I want.
推荐答案
试试 iframe 选项?
Try the iframe option instead?
在 enablejsapi 之后测试自动隐藏?
Test putting autohide after enablejsapi?
或测试 autohide=2(默认选项)以查看是否能恢复,然后再次尝试更改.
Or test out autohide=2 (default option) to see if that brings it back, then try change it again.
http://code.google.com/apis/youtube/player_parameters.html#自动隐藏
这篇关于自动隐藏时显示嵌入的 YouTube 播放器的进度条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!