嵌入 Windows Media Player 并禁用可视化
我在公司环境中工作,其中媒体播放的主要机制是 Windows Media Player。在我们的 Intranet 上,我们通过 Internet Explorer 6 以嵌入式 WMP 形式提供 MP3 文件。
我在嵌入、播放等方面没有任何问题。唯一的问题是我想禁用在播放时自动打开的可视化功能返回 MP3。
注意:我很乐意这样做,但在这种情况下无法使用替代方案。请不要推荐一个。
这是我当前嵌入代码的示例,它非常精简并且仅适用于 IE。我正在努力将其更新为跨浏览器,但这不符合目前的要求,因此优先级较低。
<object id="PLAYER" type="application/x-oleobject" height="360" width="480" classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6">
<param value="sb-sou-3-09.mp3" name="Url" />
</object>
理想情况下,我想保留播放控件,但只需关闭可视化即可。如果它是一个大的黑色矩形,那就没问题。我们的用户不需要他们飞过声音隧道的错觉——他们只是想听音频。
我尝试设置 uiMode
设置,但是 MSDN 上列出的所有可能值都不是我要查找的值。
I'm working in a corporate environment where the primary mechanism of media playback is Windows Media Player. On our intranet we're serving MP3 files in an embedded WMP through Internet Explorer 6.
I have no problems with embedding, playback, etc. The only issue is that I want to disable the visualization that is automatically turned on when I'm playing back an MP3.
Note: I'd love to, but can't use an alternative in this case. Please don't suggest one.
Here's a sample of what my current embedding code looks like, it's very slim and only works in IE. I'm working on updating it to be cross-browser, but that isn't in the requirements right now so it's a low priority.
<object id="PLAYER" type="application/x-oleobject" height="360" width="480" classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6">
<param value="sb-sou-3-09.mp3" name="Url" />
</object>
Ideally I'd like to retain the playback controls, but just turn the visualization off. If it's a big black rectangle, that's fine. Our users don't need the illusion that they are flying through a tunnel of sound -- they just want to listen to the audio.
I've tried setting the uiMode
setting, but none of the possible values listed at MSDN are the ones I'm looking for.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试摆弄高度,即
try fiddling with the height i.e.