mirror of
https://github.com/rzeldent/esp32cam-rtsp.git
synced 2025-11-15 20:48:00 +00:00
Added session count in HTML
This commit is contained in:
@@ -10,6 +10,10 @@ rtsp_server::rtsp_server(OV2640 &cam, unsigned long interval, int port /*= 554*/
|
||||
WiFiServer::begin();
|
||||
timer_.every(interval, client_handler, this);
|
||||
}
|
||||
size_t rtsp_server::num_connected()
|
||||
{
|
||||
return clients_.size();
|
||||
}
|
||||
|
||||
void rtsp_server::doLoop()
|
||||
{
|
||||
|
||||
@@ -14,6 +14,8 @@ public:
|
||||
|
||||
void doLoop();
|
||||
|
||||
size_t num_connected();
|
||||
|
||||
private:
|
||||
struct rtsp_client
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user