Micro RTSP Audio
|
Class for handling an RTSP session Requires a an AudioStreamer as a source for Streaming. More...
#include <RTSPSession.h>
Public Member Functions | |
RtspSession (WiFiClient &aRtspClient, AudioStreamer *aStreamer) | |
~RtspSession () | |
bool | handleRequests (uint32_t readTimeoutMs) |
Public Attributes | |
bool | m_streaming |
bool | m_stopped |
bool | m_sessionOpen = true |
char * | RecvBuf = nullptr |
char * | CurRequest = nullptr |
char | CmdName [RTSP_PARAM_STRING_MAX] |
Class for handling an RTSP session Requires a an AudioStreamer as a source for Streaming.
RtspSession::RtspSession | ( | WiFiClient & | aRtspClient, |
AudioStreamer * | aStreamer | ||
) |
Creates a new RTSP session object
aRtspClient | socket to which the RTSP client has connected |
aStreamer | AudioStreamer to be used a source for an RTP stream |
RtspSession::~RtspSession | ( | ) |
Closes socket and deletes allocated memory
bool RtspSession::handleRequests | ( | uint32_t | readTimeoutMs | ) |
Read from the socket and parse commands if possible
readTimeoutMs | time in milliseconds to wait for incoming data |
Read from our socket, parsing commands as possible.