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

@ -1294,7 +1294,7 @@ void SrsRtmpConn::http_hooks_on_close()
int connection_id = _srs_context->get_id();
for (int i = 0; i < (int)on_close->args.size(); i++) {
std::string url = on_close->args.at(i);
SrsHttpHooks::on_close(url, connection_id, ip, req);
SrsHttpHooks::on_close(url, connection_id, ip, req, skt->get_send_bytes(), skt->get_recv_bytes());
}
}
#endif