当前位置首页 > IIS知识

IISMediaService:Channel小结

阅读次数:332 次  来源:admin  发布时间:

IIS Media Service 对Channel的Schema可以在浏览器中输入http://{0}:{1}/services/smoothstreaming/publishingpoints.isml/settings 看到。

<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <author>
    <name></name>
  </author>
  <title>Publishing Point Collection</title>
  <updated>2014-03-20T17:38:09.529Z</updated>
  <entry>
    <id>http://{0}:{1}/services/smoothstreaming/publishingpoints.isml/settings</id>
    <title>Test</title>
    <updated>2014-03-19T19:06:55Z</updated>
    <link href="http://{0}:{1}/live/Test.isml/settings" rel="self" type="application/atom+xml" title="Settings" />
    <link href="http://{0}:{1}/live/Test.isml/state" rel="related" type="application/atom+xml" title="State" />
    <link href="http://{0}:{1}/live/Test.isml/statistics" rel="related" type="application/atom+xml" title="Statistics" />
    <content type="application/xml">
      <SmoothStreaming xmlns="http://schemas.microsoft.com/iis/media/2011/03/streaming/management">
        <Settings>
          <Title>Test</Title>
          <SourceType>Pull</SourceType>
          <AutoStart>true</AutoStart>
          <LookAheadChunks>2</LookAheadChunks>
          <Archive enabled="true">
            <Path useEventIdOnPath="false" />
          </Archive>
          <ClientConnections enabled="true">
            <WindowLength>PT2M0S</WindowLength>
            <ClientManifestVersion>2.2</ClientManifestVersion>
          </ClientConnections>
          <ServerConnections enabled="true">
            <SendEndOfStreamOnStop>true</SendEndOfStreamOnStop>
          </ServerConnections>
          <PullFrom>
            <PublishingPoints>
              <PublishingPoint>http://{0}:{1}/live/Test.isml</PublishingPoint>
            </PublishingPoints>
          </PullFrom>
          <Modules>
            <Module id="pull" type="source">
              <Properties xmlns="http://schemas.microsoft.com/iis/media/2012/01/streaming/management">
                <PropertyGroup id="EndPoint- 0" type="endPoint">
                  <Property id="url">http://{0}:{1}/live/Test.isml</Property>
                </PropertyGroup>
              </Properties>
            </Module>
            <Module id="fmp4" type="sink">
              <Properties xmlns="http://schemas.microsoft.com/iis/media/2012/01/streaming/management" />
            </Module>
            <Module id="pull" type="sink">
              <Properties xmlns="http://schemas.microsoft.com/iis/media/2012/01/streaming/management">
                <Property id="sendEndOfStreamOnStop">true</Property>
              </Properties>
            </Module>
            <Module id="mcast" type="sink">
              <Properties xmlns="http://schemas.microsoft.com/iis/media/2012/01/streaming/management">
                <Property id="groupAddress">192.168.1.10</Property>
                <Property id="sourceAddress">192.168.1.10</Property>
                <Property id="ttl">128</Property>
                <Property id="portRange">7001-7020</Property>
              </Properties>
            </Module>
          </Modules>
        </Settings>
      </SmoothStreaming>
    </content>
  </entry>

</feed>

Schema

通过查看IIS Media Service的Schema, 可以检查用代码对Channel的操作是否正确。

这里要对DVR的设置要注意:

          <ClientConnections enabled="true">
            <WindowLength>PT2M0S</WindowLength>
            <ClientManifestVersion>2.2</ClientManifestVersion>
          </ClientConnections>

1. ClientManifestVersion:

不同版本的IIS Media Service版中,该Value是不一样的,4.1版本中,ClientManifestVersion=2.0; 4.5版本中,ClientManifestVersion=2.2

2. WindowLength

时间值参考http://www.w3schools.com/schema/schema_dtypes_date.a

上一篇:[备忘]IIS7.5运行.aspx出现“由于Web服务器上的“ISAPI和CGI限制”列表设置,无法提供您请求的页面。”错误解决
下一篇:winxp下在启动iis的时候,导致报127错误的原因。