mirror of
https://github.com/rzeldent/esp32cam-rtsp.git
synced 2025-11-18 05:58:01 +00:00
Fixes
This commit is contained in:
@@ -3,15 +3,13 @@
|
||||
#include <memory>
|
||||
|
||||
// Check client connections every 100 milliseconds
|
||||
#define CHECK_CLIENT_INTERVAL 100
|
||||
#define STREAM_NAME "mjpeg/1"
|
||||
#define CHECK_CLIENT_INTERVAL 10
|
||||
|
||||
micro_rtsp_server::micro_rtsp_server(const micro_rtsp_camera &source, unsigned frame_interval /*= 100*/, unsigned short port /*= 554*/)
|
||||
micro_rtsp_server::micro_rtsp_server(const micro_rtsp_camera &source, unsigned frame_interval /*= 100*/)
|
||||
: source_(source)
|
||||
{
|
||||
log_i("starting RTSP server");
|
||||
frame_interval_ = frame_interval;
|
||||
begin(port);
|
||||
}
|
||||
|
||||
micro_rtsp_server::~micro_rtsp_server()
|
||||
@@ -19,6 +17,16 @@ micro_rtsp_server::~micro_rtsp_server()
|
||||
end();
|
||||
}
|
||||
|
||||
void micro_rtsp_server::begin(unsigned short port /*= 554*/)
|
||||
{
|
||||
WiFiServer::begin(port);
|
||||
}
|
||||
|
||||
void micro_rtsp_server::end()
|
||||
{
|
||||
WiFiServer::end();
|
||||
}
|
||||
|
||||
void micro_rtsp_server::loop()
|
||||
{
|
||||
auto now = millis();
|
||||
|
||||
Reference in New Issue
Block a user