StreamLink.NET
StreamLink Constructor
StreamLink.NETCaplin.StreamLinkStreamLinkStreamLink()()()
Initializes a new instance of the StreamLink class using the standard .NET application configuration file.
Declaration Syntax
C#Visual BasicVisual C++
public StreamLink()
Public Sub New
public:
StreamLink()
Remarks

The standard .NET application configuration file is an XML file with the same name as the main executable but with an extension of .config

The application configuration must be modified to include a section for ‘RttpConfiguration’ configuration as shown in the following example. For full information on the syntax and semantics of the StreamLink configuration XML see the Caplin document “StreamLink Configuration XML Reference”. The syntax is also formally defined in the XML schema, ServiceConfiguration.xsd, located in the StreamLink installation folder.

CopyC#
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <section name="RttpConfiguration" type="Caplin.StreamLink.Protocol.Rttp.Configuration.RttpConfigurationHandler,Caplin.StreamLink"/>
  </configSections>

  <RttpConfiguration>
    <RttpService Name="Example RTTP Service">

      <Connections>
        <Type2Connection Protocol="Http" Port="8080"/>
      </Connections>

      <ServerGroup Type="order"> 
        <Server Name="Primary London Server" Address="host1"/>
      </ServerGroup>

    </RttpService>
  </RttpConfiguration>

</configuration>
The above configuration will try a single server (host1) using the HTTP protocol on port 8080. The format of the ‘RttpConfiguration’ section is the same as for the XML file defined in the StreamLink(Uri) constructor.

Assembly: Caplin.StreamLink (Module: Caplin.StreamLink) Version: 5.0.5.0 (5.0.5.0)