mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
add play client num in statistic
This commit is contained in:
parent
532a48409d
commit
08e9f6ef42
4 changed files with 77 additions and 9 deletions
|
@ -53,6 +53,7 @@ public:
|
|||
std::string app;
|
||||
std::string stream;
|
||||
std::string url;
|
||||
int64_t clients;
|
||||
public:
|
||||
SrsStatisticStream();
|
||||
virtual ~SrsStatisticStream();
|
||||
|
@ -89,6 +90,14 @@ public:
|
|||
* @param req, the client request object.
|
||||
*/
|
||||
virtual int on_client(int id, SrsRequest* req);
|
||||
/**
|
||||
* client start play
|
||||
*/
|
||||
virtual int on_client_play_start(int id);
|
||||
/**
|
||||
* client stop play
|
||||
*/
|
||||
virtual int on_client_play_stop(int id);
|
||||
public:
|
||||
/**
|
||||
* get the server id, used to identify the server.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue