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

Modified on_close webhook.

Pass the send_bytes and recv_bytes count to the web hook.
This commit is contained in:
Nimrod A. Abing (on kohima) 2015-03-09 12:45:26 +08:00 committed by winlin
parent bc93147426
commit a95bd7d30e
3 changed files with 5 additions and 3 deletions

View file

@ -66,7 +66,7 @@ public:
* @param url the api server url, to process the event.
* ignore if empty.
*/
static void on_close(std::string url, int client_id, std::string ip, SrsRequest* req);
static void on_close(std::string url, int client_id, std::string ip, SrsRequest* req, int64_t send_bytes, int64_t recv_bytes);
/**
* on_publish hook, when client(encoder) start to publish stream
* @param client_id the id of client on server.