Rest 无法以编程方式创建实时平滑流媒体发布点
我正在尝试使用for IIS媒体服务以编程方式创建实时发布点。为此,我将向此URL发送一个POST呼叫:Rest 无法以编程方式创建实时平滑流媒体发布点,rest,iis,live,smooth-streaming,Rest,Iis,Live,Smooth Streaming,我正在尝试使用for IIS媒体服务以编程方式创建实时发布点。为此,我将向此URL发送一个POST呼叫: http://127.0.0.1/services/smoothstreaming/publishingpoints.isml/settings 我在请求中包含了两个自定义标题: Content-Type: application/atom+xml Slug: /test.isml <?xml version="1.0" encoding="utf-8" standalone="
http://127.0.0.1/services/smoothstreaming/publishingpoints.isml/settings
我在请求中包含了两个自定义标题:
Content-Type: application/atom+xml
Slug: /test.isml
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<entry xmlns="http://www.w3.org/2005/Atom">
<id>http://127.0.0.1/test.isml/settings</id>
<title>Test</title>
<updated>2012-07-12T19:13:25Z</updated>
<content type="application/xml">
<SmoothStreaming xmlns="http://schemas.microsoft.com/iis/media/2011/03/streaming/management">
<Settings>
<Title>Test</Title>
<SourceType>Push</SourceType>
<AutoStart>false</AutoStart>
<AutoRestartOnEncoderReconnect>false</AutoRestartOnEncoderReconnect>
<LookAheadChunks>2</LookAheadChunks>
<Archive enabled="false">
<Path useEventIdOnPath="false" />
</Archive>
<ClientConnections enabled="true">
<ClientManifestVersion>2.0</ClientManifestVersion>
</ClientConnections>
<ServerConnections enabled="false">
<SendEndOfStreamOnStop>false</SendEndOfStreamOnStop>
</ServerConnections>
</Settings>
</SmoothStreaming>
</content>
</entry>
这是请求的主体:
Content-Type: application/atom+xml
Slug: /test.isml
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<entry xmlns="http://www.w3.org/2005/Atom">
<id>http://127.0.0.1/test.isml/settings</id>
<title>Test</title>
<updated>2012-07-12T19:13:25Z</updated>
<content type="application/xml">
<SmoothStreaming xmlns="http://schemas.microsoft.com/iis/media/2011/03/streaming/management">
<Settings>
<Title>Test</Title>
<SourceType>Push</SourceType>
<AutoStart>false</AutoStart>
<AutoRestartOnEncoderReconnect>false</AutoRestartOnEncoderReconnect>
<LookAheadChunks>2</LookAheadChunks>
<Archive enabled="false">
<Path useEventIdOnPath="false" />
</Archive>
<ClientConnections enabled="true">
<ClientManifestVersion>2.0</ClientManifestVersion>
</ClientConnections>
<ServerConnections enabled="false">
<SendEndOfStreamOnStop>false</SendEndOfStreamOnStop>
</ServerConnections>
</Settings>
</SmoothStreaming>
</content>
</entry>
http://127.0.0.1/test.isml/settings
试验
2012-07-12T19:13:25Z
试验
推
假的
假的
2.
2
假的
IIS在此正文中向我发出405/错误请求错误:
<?xml version="1.0" encoding="UTF-8"?>
<SmoothStreaming xmlns="http://schemas.microsoft.com/iis/media/2011/03/streaming/management">
<Error>
<ErrorCode>0x80880026</ErrorCode>
<ErrorMessage>The resource contains one or more elements that contain invalid data. For information about valid resource representations, please see the documentation for the supported schemas.</ErrorMessage>
</Error>
</SmoothStreaming>
0x80880026
资源包含一个或多个包含无效数据的元素。有关有效资源表示的信息,请参阅受支持架构的文档。
有人知道我做错了什么吗?使用“归档”和“服务器连接”节点修复了它。不确定它们是否有任何错误,或者它们是否只应在启用时包含=true