阻止嵌入式 Windows Media Player 循环播放?

发布于 2024-07-09 00:35:04 字数 253 浏览 5 评论 0原文

我在 HTML 页面中嵌入了 Windows Media 播放器,当音频结束时,它会从头开始。

根据文档,有一个 autorewind 参数/属性和一个 loop

问题是,我已将这两个设置为 false(和/或零),但似乎没有任何区别。

这可能是一个错误吗? 我的客户端是 WMP 10.00.00.4058。 也许服务器上有某种设置告诉文件循环,这是一个疯狂的想法吗?

I've got an embedded Windows Media player in an HTML page, and when the audio gets to the end, it just starts again from the beginning.

According to the documentation, there's an autorewind parameter/attribute and also a loop.

The problem is, I've set both of those to false (and/or zero) and it doesn't seem to make any difference.

Might this be a bug? My client is WMP 10.00.00.4058. Maybe there's some kind of setting on the server which tells files to loop, is that a crazy idea?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

能否归途做我良人 2024-07-16 00:35:04

哇! 参数名称=播放计数值=1

WTH! param name=PlayCount value=1

黎歌 2024-07-16 00:35:04

我认为问题在于不同浏览器之间的不同嵌入方法。 这是一些经过测试的代码,其中不会发生循环。

IE

<object id="contentPlayer" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="300" height="60"><!-- <param name='fileName' value=''> -->
<param name='animationatStart' value='false'>
<param name='transparentatStart' value='true'>
<param name='autoStart' value='true'>
<param name='playState' VALUE='1'>
<param name='loop' value='false'>
</OBJECT>

Firefox

<object id="contentPlayer" name='contentPlayer' type="application/x-ms-wmp" data="" width="300" height="60"><!-- <param name='fileName' value=''> -->
<param name='animationatStart' value='false'>
<param name='transparentatStart' value='true'>
<param name='autoStart' value='true'>
<param name='playState' VALUE='1'>
<param name='loop' value='false'>
</OBJECT>

主要区别在于,在 IE 中我有一个 classid,但在 Firefox 中我有一个“类型”分类

The issue, i believe, lies within your different embedding methods between the different browsers. Here's is some tested code where looping does not happen.

IE

<object id="contentPlayer" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="300" height="60"><!-- <param name='fileName' value=''> -->
<param name='animationatStart' value='false'>
<param name='transparentatStart' value='true'>
<param name='autoStart' value='true'>
<param name='playState' VALUE='1'>
<param name='loop' value='false'>
</OBJECT>

Firefox

<object id="contentPlayer" name='contentPlayer' type="application/x-ms-wmp" data="" width="300" height="60"><!-- <param name='fileName' value=''> -->
<param name='animationatStart' value='false'>
<param name='transparentatStart' value='true'>
<param name='autoStart' value='true'>
<param name='playState' VALUE='1'>
<param name='loop' value='false'>
</OBJECT>

The primary difference being that in IE I have a classid but in Firefox I have a "type" classification

半夏半凉 2024-07-16 00:35:04

将您的 html 代码与此进行比较:

来自
http://www.programmingforums.org/post147977.html

<对象宽度=“320”高度=“290” 
  classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" 
  id="mediaplayer1"> 
   
  <参数名称=“自动启动”值=“True”> 
  <参数名称=“ShowControls”值=“True”> 
  <参数名称=“ShowStatusBar”值=“False”> 
  <参数名称=“ShowDisplay”值=“False”> 
  <参数名称=“自动倒带”值=“真”> 
  <嵌入 
  类型=“应用程序/x-mplayer2” 
  pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/" 
  宽度=“320”高度=“290”src=“/support/dreamweaver/ts/documents/kids.mpg” 
  文件名=“kids.mpg”自动启动=“真” 
  showcontrols="True" showstatusbar="False" 
  showdisplay="False" autorewind="True"> 
   
   
  

compare your html code with this:

stolen from
http://www.programmingforums.org/post147977.html

<object width="320" height="290"
classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
id="mediaplayer1">
<param name="Filename" value="kids.mpg">
<param name="AutoStart" value="True">
<param name="ShowControls" value="True">
<param name="ShowStatusBar" value="False">
<param name="ShowDisplay" value="False">
<param name="AutoRewind" value="True">
<embed
type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/"
width="320" height="290" src="/support/dreamweaver/ts/documents/kids.mpg"
filename="kids.mpg" autostart="True"
showcontrols="True" showstatusbar="False"
showdisplay="False" autorewind="True">
</embed>
</object>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文