将全屏按钮添加到HTML中的Windows媒体播放器对象

时间:2011-07-30 21:36:31

标签: html windows-media-player

有没有办法告诉Windows Media播放器对象在此HTML中有全屏显示按钮?

<div id="player" style="position: relative; top: 20px; left: 35px; width: 64.5%; border: 2px solid grey; z-index: 40;">
             <object id="MediaPlayer" width="100%" height="377" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" style="left: 0px; top: 0px; background-repeat: no-repeat; background-position: center center; z-index: 40;" type="application/x-oleobject">
                    <param name="uiMode" value="full" />
                    <param name="AutoStart" value="FALSE" />
                    <param name="AllowChangeDisplaySize" value="TRUE" />
                    <param name="AutoSize" value="TRUE" />
                    <param name="Volume" value="100" />
                    <param name="URL" value=mms://bstreamlivewm.fplive.net/bstreamlive-live/bstream2 />
                    <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" name="MediaPlayer" src=mms://bstreamlivewm.fplive.net/bstreamlive-live/bstream2 width="100%" height="377" showcontrols="1" showtracker="1" autostart="0" volume="100" />              
            </object>                   
</div>

1 个答案:

答案 0 :(得分:0)

如果您双击视频,视频将自动全屏显示。这是Windows Media Player的专有处理。您甚至可以禁用或启用它。您需要自定义WMP GUI的唯一选项是将uiMode更改为例如mini