Table of Contents

Class RtmpServer

Namespace
VAST.RTMP
Assembly
VAST.RTMP.dll

RTMP server. Waiting for incoming connections, manages RTMP sessions.

public class RtmpServer
Inheritance
RtmpServer
Inherited Members

Constructors

RtmpServer()

Creates new instance of RtmpServer

public RtmpServer()

RtmpServer(RtmpServerParameters)

Creates a new instance of RtmpServer with the specified parameters.

public RtmpServer(RtmpServerParameters parameters)

Parameters

parameters RtmpServerParameters

The server configuration parameters.

RtmpServer(INetworkTransport, HttpServer, RtmpServerParameters)

Creates a new instance of RtmpServer with the specified transport, HTTP server, and parameters.

public RtmpServer(INetworkTransport transport, HttpServer httpServer, RtmpServerParameters parameters)

Parameters

transport INetworkTransport

Optional shared socket transport. If null, a new transport will be created.

httpServer HttpServer

Optional HTTP server for RTMPT (RTMP over HTTP) support.

parameters RtmpServerParameters

Optional server configuration parameters.

Exceptions

UnauthorizedAccessException

Thrown when the license is invalid.

RtmpServer(INetworkTransport, RtmpServerParameters)

Creates new instance of RtmpServer

public RtmpServer(INetworkTransport transport, RtmpServerParameters parameters)

Parameters

transport INetworkTransport

Already initialized and running shared transport

parameters RtmpServerParameters

Optional additional server parameters

Methods

Start()

Starts RTMP server

public void Start()

Stop()

Stops RTMP server

public void Stop()

Events

ClientConnected

Occurs when a client connects to receive a stream from the server.

public event EventHandler<INetworkSink> ClientConnected

Event Type

EventHandler<INetworkSink>

Connected

Occurs when a new RTMP connection is established.

public event EventHandler<TransportArgs> Connected

Event Type

EventHandler<TransportArgs>

Disconnected

Occurs when an RTMP connection is disconnected.

public event EventHandler<TransportArgs> Disconnected

Event Type

EventHandler<TransportArgs>

PublisherConnected

Occurs when a publisher connects to stream media to the server.

public event EventHandler<INetworkSource> PublisherConnected

Event Type

EventHandler<INetworkSource>