我正在使用jw播放器。如果客户端要求鼠标悬停显示控制栏,否则所有时间都隐藏控制器..请建议我
答案 0 :(得分:1)
设置controlbar.idlehide = true和controlbar = over:
controlbar.idlehide(false) 如果controlbar.position设置为over,则此选项确定当播放器暂停或停止时控制栏是否保持隐藏状态。
更正了玩家代码(工作演示:http://jsfiddle.net/epinapala/8nHKt/):
<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='470' height='320' id='single1' name='single1'>
<param name='movie' value='http://player.longtailvideo.com/player.swf'>
<param name='allowfullscreen' value='true'>
<param name='allowscriptaccess' value='always'>
<param name='wmode' value='transparent'>
<param name='flashvars' value='image=http://content.longtailvideo.com/videos/flvplayer.jpg&file=http://content.longtailvideo.com/videos/flvplayer.flv&controlbar.idlehide=true&controlbar=over&duration=34&fullscreen=true&stretching=fill'>
<embed
id='single2'
name='single2'
src='http://player.longtailvideo.com/player.swf'
width='470'
height='320'
bgcolor='#000000'
allowscriptaccess='always'
allowfullscreen='true'
flashvars='image=http://content.longtailvideo.com/videos/flvplayer.jpg&file=http://content.longtailvideo.com/videos/flvplayer.flv&controlbar.idlehide=true&controlbar=over&duration=34&fullscreen=true&stretching=fill'
/>
</object>