Windows 媒体服务器在播放列表中的 1 个文件后不会停止

发布于 2024-07-25 12:34:26 字数 923 浏览 5 评论 0原文

我正在播放 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>

您可能会知道,如果可以的话,它应该尝试在 media1.company.com 上播放该文件,然后尝试 media2.company.com 上的文件,如果第一个失败,则播放道歉,如果两个都失败。

实际发生的是,您听到了这三个内容。 故障转移过程似乎失败了,并且服务器不知道第一个文件已成功播放。

可以采取什么措施来解决这个问题? 是服务器设置吗? XML 格式有问题吗?

I'm playing Windows Media audio, triggered by an ASX meta-file which looks like this:

<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.

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?

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

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

发布评论

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

评论(1

漫雪独思 2024-08-01 12:34:26

这是“我不认为这意味着您认为的意思”的情况,

基本上您创建了一个播放列表并告诉媒体播放器播放所有这些文件。

相反,请尝试这样的操作:

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

更多信息位于 Microsoft。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文