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

refine the stat api, support query specified stream.

This commit is contained in:
winlin 2015-08-21 15:51:20 +08:00
parent c75f05c88b
commit ab4620870d
3 changed files with 144 additions and 99 deletions

View file

@ -47,6 +47,7 @@ struct SrsStatisticVhost
public:
int64_t id;
std::string vhost;
int nb_clients;
public:
/**
* vhost total kbps.
@ -55,6 +56,8 @@ public:
public:
SrsStatisticVhost();
virtual ~SrsStatisticVhost();
public:
virtual int dumps(std::stringstream& ss);
};
struct SrsStatisticStream
@ -66,6 +69,7 @@ public:
std::string stream;
std::string url;
std::string status;
int nb_clients;
public:
/**
* stream total kbps.
@ -93,6 +97,8 @@ public:
public:
SrsStatisticStream();
virtual ~SrsStatisticStream();
public:
virtual int dumps(std::stringstream& ss);
public:
/**
* publish the stream.