mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine mpegts code, use simple rtmp client
This commit is contained in:
parent
ad9b377d96
commit
a08d8f83d6
5 changed files with 34 additions and 112 deletions
|
@ -48,6 +48,7 @@ class SrsSharedPtrMessage;
|
|||
class SrsRawAacStream;
|
||||
struct SrsRawAacStreamCodec;
|
||||
class SrsPithyPrint;
|
||||
class SrsSimpleRtmpClient;
|
||||
|
||||
#include <srs_app_st.hpp>
|
||||
#include <srs_kernel_ts.hpp>
|
||||
|
@ -86,9 +87,7 @@ private:
|
|||
std::string output;
|
||||
private:
|
||||
SrsRequest* req;
|
||||
SrsTcpClient* transport;
|
||||
SrsRtmpClient* client;
|
||||
int stream_id;
|
||||
SrsSimpleRtmpClient* sdk;
|
||||
private:
|
||||
SrsRawH264Stream* avc;
|
||||
std::string h264_sps;
|
||||
|
@ -125,7 +124,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);
|
||||
// close the connected io and rtmp to ready to be re-connect.
|
||||
virtual void close();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue