Class RtspServer
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
maxConnectionsintThe 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
maxConnectionsintThe maximum number of simultaneous connections allowed.
parametersRtspServerParametersThe 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
maxConnectionsintThe maximum number of simultaneous connections allowed.
transportINetworkTransportThe socket transport to use, or
nullto create a new one.parametersRtspServerParametersThe server configuration parameters, or
nullfor 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
Connected
Occurs when a new client connection is established.
public event EventHandler<TransportArgs> Connected
Event Type
Disconnected
Occurs when a client connection is terminated.
public event EventHandler<TransportArgs> Disconnected
Event Type
PublisherConnected
Occurs when a publisher connects and is identified.
public event EventHandler<INetworkSource> PublisherConnected