是否可以在 Windows 媒体播放器的 Chrome/Firefox 中隐藏 UserControl?
我尝试使用 Chrome 中的 Windows Media Player 删除用户控件(仅显示视频帧),但没有成功。
我使用的代码:
<EMBED TYPE="application/x-mplayer2" SRC="..."
NAME="MediaPlayer"
WIDTH="400"
HEIGHT="238"
autosize="0"
stretchtofit="0"
ShowControls="0"
ShowStatusBar="0"
ShowDisplay="0"
autostart="1">
</EMBED>
但没有成功。该控件在 Chrome 和 Firefox 中仍然可见,但可以在 IE8 中使用。
I'm trying to remove the user control (only show the video frame) using Windows Media Player inside Chrome, but without success.
The code I use:
<EMBED TYPE="application/x-mplayer2" SRC="..."
NAME="MediaPlayer"
WIDTH="400"
HEIGHT="238"
autosize="0"
stretchtofit="0"
ShowControls="0"
ShowStatusBar="0"
ShowDisplay="0"
autostart="1">
</EMBED>
But with no success. The control is still visible in Chrome and Firefox, but it works in IE8.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,更好地格式化代码。需要水平滚动才能查看的一长行代码确实很烦人。只需将其分成多行,例如:
您还应该使用
OBJECT
而不是
EMBED
,因为EMBED
不是标准标记。并且,根据此页面 ,您需要指定一个CLASSID
参数来嵌入最新版本的WMP。然后,您需要一个uiMode
参数来告诉 WMP 不要显示控件:uiMode
的其他选项包括full
、mini
> 和不可见
。编辑:
对于在线嵌入流媒体视频,我个人更喜欢 Quicktime/.mov 而不是 WMP/.wmv,但最好的跨平台解决方案是嵌入 Flash 播放器并将视频编码为 FLV。 WMP/.wmv 将是我在网页上嵌入多媒体的最后选择之一(仅次于 RealPlayer)。根据本站,WMP浏览器插件自 1 月份以来,使用率已下降至 67%(当时为 72%),而 Flash 支持率一直稳定在 96-97%。
First off, format your code better. It's really annoying having a single long line of code that you need to scroll horizontally to view. Just break it into multiple lines, like:
You should also use
OBJECT
instead ofEMBED
, asEMBED
is not a standard tag. And, according to this page, you need to specify aCLASSID
parameter to embed the latest version of WMP. Then you need auiMode
param that tells WMP not to display the controls:Other options for
uiMode
includefull
,mini
, andinvisible
.Edit:
I personally prefer Quicktime/.mov over WMP/.wmv for embedding streaming video online, but the best cross-platform solution is to embed a Flash player and encode your video as an FLV. WMP/.wmv would be one of my last choices for embedding multimedia on a webpage (next to RealPlayer). According to this site, WMP browser plugin usage has dropped down to 67% since January (when it was at 72%), whereas Flash support has remained steady at 96-97%.