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

fix #442, support kickoff client.

This commit is contained in:
winlin 2015-08-22 13:36:15 +08:00
parent b37797b13a
commit 94641c812b
11 changed files with 57 additions and 46 deletions

View file

@ -112,6 +112,7 @@ struct SrsStatisticClient
{
public:
SrsStatisticStream* stream;
SrsConnection* conn;
int id;
public:
SrsStatisticClient();
@ -181,8 +182,9 @@ public:
* when got a client to publish/play stream,
* @param id, the client srs id.
* @param req, the client request object.
* @param conn, the physical absract connection object.
*/
virtual int on_client(int id, SrsRequest* req);
virtual int on_client(int id, SrsRequest* req, SrsConnection* conn);
/**
* client disconnect
* @remark the on_disconnect always call, while the on_client is call when