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

for #250, parse pes packet ok, ts message ok.

This commit is contained in:
winlin 2015-01-29 22:58:02 +08:00
parent 486277089d
commit 1685cdd48e
6 changed files with 740 additions and 25 deletions

View file

@ -39,10 +39,12 @@ class SrsConfDirective;
#ifdef SRS_AUTO_STREAM_CASTER
#include <srs_kernel_ts.hpp>
/**
* the mpegts over udp stream caster.
*/
class SrsMpegtsOverUdp
class SrsMpegtsOverUdp : public ISrsTsHandler
{
private:
SrsStream* stream;
@ -67,6 +69,9 @@ private:
* the stream contains the ts packet to parse.
*/
virtual int on_ts_packet(SrsStream* stream);
// interface ISrsTsHandler
public:
virtual int on_ts_message(SrsTsMessage* msg);
};
#endif