Initializes a new instance of the StreamLink class
using the standard .NET application configuration file.
Declaration Syntax
C# | Visual Basic | Visual 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>