zoukankan      html  css  js  c++  java
  • IIS Media Service: Channel 小结

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

  • 相关阅读:
    Winform 让跨线程访问变得更简单
    Winform 单实例运行
    webservice 测试窗体只能用于来自本地计算机的请求
    使用srvany.exe把程序安装成windows服务
    学习ExtJS4 常用控件
    [leetcode]Unique Binary Search Trees
    [leetcode]Subsets II
    [leetcode]Subsets
    [leetcode]Valid Number
    [leetcode]Permutation Sequence
  • 原文地址:https://www.cnblogs.com/LeimOO/p/3615030.html
Copyright © 2011-2022 走看看