简体   繁体   English

从列表播放1个文件后Windows Media Server不会停止

[英]Windows media server doesn't stop after playing 1 file from list

I'm playing Windows Media audio, triggered by an ASX meta-file which looks like this: 我正在播放Windows Media音频,该音频是由如下所示的ASX元文件触发的:

<asx version="3.0" BannerBar="none">
  <title>Foo</title>
  <author>Bar</author>
  <copyright>Baz</copyright>
  <moreinfo href="http://company.com/"/>
  <entry>
    <title>Audio Stream</title>
    <ref href="mms://media1.company.com/bof.asf"/>
  </entry>
  <entry>
    <title>Audio Stream</title>
    <ref href="mms://media2.company.com/bof.asf"/>
  </entry>
  <entry>
    <title>Apology</title>
    <ref href="http://www.company.com/apology.asf"/>
  </entry>
</asx>

as you can probably tell, it's supposed to try to play the file on media1.company.com if it can, then try the file on media2.company.com if the first one fails, then play the apology if both fail. 如您所知,应该尝试在media1.company.com上播放文件,如果第一个失败,则尝试在media2.company.com上播放,如果两者都失败,则道歉。

What actually happens is, you hear all three. 实际发生的是,您听到了全部三个声音。 The failover process seems to, well, fail, and the server doesn't know the first file has successfully played. 故障转移过程似乎失败了,服务器不知道第一个文件已成功播放。

What can be done to fix this? 如何解决这个问题? Is it a server setting? 它是服务器设置吗? Is something wrong with the XML format? XML格式有问题吗?

This is a case of "I don't think this means what you think it means" 这是“我不认为这意味着您认为的含义”的情况

Basically you created a playlist and told media player to play all of those files. 基本上,您创建了一个播放列表,并告诉媒体播放器播放所有这些文件。

Instead try something like this: 而是尝试这样的事情:

<entry>
<title>Audio Stream</title>
<ref href="mms://blah">
<ref href="mms://blahsecondattempt">
<ref href="mms://blahthird">
</entry>

More information is at Microsoft . 有关更多信息,请访问Microsoft

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM