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

refine code, replace all rtmp connect by simple rtmp client.

This commit is contained in:
winlin 2015-10-14 16:06:45 +08:00
parent a08d8f83d6
commit a9fdb630d9
3 changed files with 33 additions and 202 deletions

View file

@ -56,6 +56,7 @@ class SrsSharedPtrMessage;
class SrsCodecSample;
class SrsSimpleStream;
class SrsPithyPrint;
class SrsSimpleRtmpClient;
/**
* a rtp connection which transport a stream.
@ -139,11 +140,9 @@ private:
SrsOneCycleThread* trd;
private:
SrsRequest* req;
SrsTcpClient* transport;
SrsRtmpClient* client;
SrsSimpleRtmpClient* sdk;
SrsRtspJitter* vjitter;
SrsRtspJitter* ajitter;
int stream_id;
private:
SrsRawH264Stream* avc;
std::string h264_sps;
@ -181,7 +180,6 @@ private:
// connect to rtmp output url.
// @remark ignore when not connected, reconnect when disconnected.
virtual int connect();
virtual int connect_app(std::string ep_server, int ep_port);
};
/**