将全屏按钮添加到 HTML 中的 Windows 媒体播放器对象
有没有办法告诉 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>
Is there a way to tell a Windows Media player object to have a button for fullscreen in this 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>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果双击视频,视频将自动全屏显示。这是 Windows Media Player 的专有处理方式。您甚至可以禁用或启用它。自定义 WMP GUI 的唯一选项是将
uiMode
更改为mini
。The video will automatically shown in fullscreen if you doubleclick the video. That is a proprietary handling by Windows Media Player. You can even disable nor enable it. The only options you have to customize the GUI of the WMP is by changing the
uiMode
to e.g.mini
.