Table of Contents

Class RtspServer

Namespace
VAST.RTSP
Assembly
VAST.RTSP.dll

Represents an RTSP server that accepts client and publisher connections, manages sessions, and handles media streaming.

public class RtspServer
Inheritance
RtspServer
Inherited Members

Constructors

RtspServer(int)

Initializes a new instance of the RtspServer class with the specified maximum connections.

public RtspServer(int maxConnections)

Parameters

maxConnections int

The maximum number of simultaneous connections allowed.

RtspServer(int, RtspServerParameters)

Initializes a new instance of the RtspServer class with the specified maximum connections and parameters.

public RtspServer(int maxConnections, RtspServerParameters parameters)

Parameters

maxConnections int

The maximum number of simultaneous connections allowed.

parameters RtspServerParameters

The server configuration parameters.

RtspServer(int, INetworkTransport, RtspServerParameters)

Initializes a new instance of the RtspServer class with the specified maximum connections, transport, and parameters.

public RtspServer(int maxConnections, INetworkTransport transport, RtspServerParameters parameters)

Parameters

maxConnections int

The maximum number of simultaneous connections allowed.

transport INetworkTransport

The socket transport to use, or null to create a new one.

parameters RtspServerParameters

The server configuration parameters, or null for defaults.

Methods

Start()

Starts RTSP server

public void Start()

Stop()

Stops RTSP server

public void Stop()

Events

ClientConnected

Occurs when a client connects and is identified.

public event EventHandler<INetworkSink> ClientConnected

Event Type

EventHandler<INetworkSink>

Connected

Occurs when a new client connection is established.

public event EventHandler<TransportArgs> Connected

Event Type

EventHandler<TransportArgs>

Disconnected

Occurs when a client connection is terminated.

public event EventHandler<TransportArgs> Disconnected

Event Type

EventHandler<TransportArgs>

PublisherConnected

Occurs when a publisher connects and is identified.

public event EventHandler<INetworkSource> PublisherConnected

Event Type

EventHandler<INetworkSource>