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

for #742, refine the object live cycle. 3.0.15

This commit is contained in:
winlin 2017-01-17 10:44:13 +08:00
parent f4c0af8bfc
commit dca9749f37
19 changed files with 286 additions and 226 deletions

View file

@ -86,7 +86,6 @@ private:
SrsSimpleStream* buffer;
std::string output;
private:
SrsRequest* req;
SrsSimpleRtmpClient* sdk;
private:
SrsRawH264Stream* avc;
@ -121,10 +120,9 @@ private:
private:
virtual int rtmp_write_packet(char type, u_int32_t timestamp, char* data, int size);
private:
// connect to rtmp output url.
// @remark ignore when not connected, reconnect when disconnected.
// Connect to RTMP server.
virtual int connect();
// close the connected io and rtmp to ready to be re-connect.
// Close the connection to RTMP server.
virtual void close();
};