1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

add client num for stream in statistic

This commit is contained in:
qiang.li 2015-01-07 23:27:24 +08:00
parent 08e9f6ef42
commit 46d716612c
3 changed files with 16 additions and 40 deletions

View file

@ -34,6 +34,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <string>
class SrsRequest;
struct SrsStatisticClient;
struct SrsStatisticVhost
{
@ -53,7 +54,7 @@ public:
std::string app;
std::string stream;
std::string url;
int64_t clients;
std::map<int, SrsStatisticClient*> clients;
public:
SrsStatisticStream();
virtual ~SrsStatisticStream();
@ -91,13 +92,9 @@ public:
*/
virtual int on_client(int id, SrsRequest* req);
/**
* client start play
* client close
*/
virtual int on_client_play_start(int id);
/**
* client stop play
*/
virtual int on_client_play_stop(int id);
virtual int on_close(int id);
public:
/**
* get the server id, used to identify the server.