Skip to main content

RtspServerOptions Struct

Options for Session::run_rtsp() — controls the RTSP server's mount point and ports. More...

Declaration

struct simaai::neat::RtspServerOptions { ... }

Included Headers

#include <SessionOptions.h>

Public Member Attributes Index

std::stringmount = ...

RTSP path component (e.g., "image"rtsp://host:port/image). More...

intport = 8554

RTSP server TCP port. More...

intrtp_port_base = -1

Optional RTP/RTCP UDP port range. More...

intrtp_port_count = 0

Size of the RTP/RTCP port range; 0 = no restriction. More...

Description

Options for Session::run_rtsp() — controls the RTSP server's mount point and ports.

Definition at line 155 of file SessionOptions.h.

Public Member Attributes

mount

std::string simaai::neat::RtspServerOptions::mount

RTSP path component (e.g., "image"rtsp://host:port/image).

Initialiser
= "image"

Definition at line 156 of file SessionOptions.h.

156 std::string mount =

port

int simaai::neat::RtspServerOptions::port = 8554

RTSP server TCP port.

Definition at line 158 of file SessionOptions.h.

158 int port = 8554;

rtp_port_base

int simaai::neat::RtspServerOptions::rtp_port_base = -1

Optional RTP/RTCP UDP port range.

When set, the RTSP server will only allocate RTP/RTCP ports within [rtp_port_base, rtp_port_base + rtp_port_count - 1]. Useful when firewall rules require a fixed port range. Leave at the defaults (-1, 0) for unrestricted port allocation. First UDP port for RTP/RTCP allocation; -1 = no restriction.

Definition at line 166 of file SessionOptions.h.

166 int rtp_port_base = -1;

rtp_port_count

int simaai::neat::RtspServerOptions::rtp_port_count = 0

Size of the RTP/RTCP port range; 0 = no restriction.

Definition at line 167 of file SessionOptions.h.


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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.