Jetson Inference
DNN Vision Library
RTSPServer Class Reference

RTSP server for transmitting encoded GStreamer pipelines to client devices. More...

#include <RTSPServer.h>

Public Member Functions

void Release ()
 Release a reference to the server instance. More...
 
bool AddRoute (const char *path, _GstElement *pipeline)
 Register a GStreamer pipeline to be served at the specified path. More...
 
bool AddRoute (const char *path, const char *pipeline)
 Create a GStreamer pipeline and register it to be served at the specified path. More...
 

Static Public Member Functions

static RTSPServerCreate (uint16_t port=RTSP_DEFAULT_PORT)
 Create a RTSP server on this port. More...
 

Protected Member Functions

 RTSPServer (uint16_t port)
 
 ~RTSPServer ()
 
bool init ()
 

Static Protected Member Functions

static void * runThread (void *user_data)
 

Protected Attributes

uint16_t mPort
 
uint32_t mRefCount
 
ThreadmThread
 
bool mRunning
 
_GMainLoop * mMainLoop
 
_GstRTSPServer * mServer
 

Detailed Description

RTSP server for transmitting encoded GStreamer pipelines to client devices.

This is integrated into videoOutput/gstEncoder, but can be used standalone (

See also
rtsp-server example)

Constructor & Destructor Documentation

◆ RTSPServer()

RTSPServer::RTSPServer ( uint16_t  port)
protected

◆ ~RTSPServer()

RTSPServer::~RTSPServer ( )
protected

Member Function Documentation

◆ AddRoute() [1/2]

bool RTSPServer::AddRoute ( const char *  path,
_GstElement *  pipeline 
)

Register a GStreamer pipeline to be served at the specified path.

It will be able to be viewed from clients at rtsp://hostname:port/path

◆ AddRoute() [2/2]

bool RTSPServer::AddRoute ( const char *  path,
const char *  pipeline 
)

Create a GStreamer pipeline and register it to be served at the specified path.

It will be able to be viewed from clients at rtsp://hostname:port/path

◆ Create()

static RTSPServer* RTSPServer::Create ( uint16_t  port = RTSP_DEFAULT_PORT)
static

Create a RTSP server on this port.

If this port is already in use, the existing server instance will be returned.

◆ init()

bool RTSPServer::init ( )
protected

◆ Release()

void RTSPServer::Release ( )

Release a reference to the server instance.

Server will be shut down when the reference count reaches zero.

◆ runThread()

static void* RTSPServer::runThread ( void *  user_data)
staticprotected

Member Data Documentation

◆ mMainLoop

_GMainLoop* RTSPServer::mMainLoop
protected

◆ mPort

uint16_t RTSPServer::mPort
protected

◆ mRefCount

uint32_t RTSPServer::mRefCount
protected

◆ mRunning

bool RTSPServer::mRunning
protected

◆ mServer

_GstRTSPServer* RTSPServer::mServer
protected

◆ mThread

Thread* RTSPServer::mThread
protected

The documentation for this class was generated from the following file: