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

for #133, decode the h264 NALU from rtp.

This commit is contained in:
winlin 2015-02-18 11:49:42 +08:00
parent 6a64164985
commit 0cc693a3b8
5 changed files with 349 additions and 4 deletions

View file

@ -45,6 +45,7 @@ class SrsRtspConn;
class SrsRtspStack;
class SrsRtspCaster;
class SrsConfDirective;
class SrsRtpPacket;
/**
* a rtp connection which transport a stream.
@ -54,9 +55,11 @@ class SrsRtpConn: public ISrsUdpHandler
private:
SrsUdpListener* listener;
SrsRtspConn* rtsp;
SrsRtpPacket* cache;
int stream_id;
int _port;
public:
SrsRtpConn(SrsRtspConn* r, int p);
SrsRtpConn(SrsRtspConn* r, int p, int sid);
virtual ~SrsRtpConn();
public:
virtual int port();
@ -103,6 +106,9 @@ public:
virtual int serve();
private:
virtual int do_cycle();
// internal methods
public:
virtual int on_rtp_packet(SrsRtpPacket* pkt);
// interface ISrsThreadHandler
public:
virtual int cycle();