mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
add todo for protocol
This commit is contained in:
parent
a2e6e6718e
commit
d6897205c7
2 changed files with 3 additions and 0 deletions
|
@ -159,6 +159,7 @@ private:
|
||||||
virtual int flush_audio();
|
virtual int flush_audio();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//TODO: refine the ts muxer, do more jobs.
|
||||||
class SrsTSMuxer
|
class SrsTSMuxer
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -326,6 +326,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* decode packet from message payload.
|
* decode packet from message payload.
|
||||||
*/
|
*/
|
||||||
|
// TODO: use protocol to decode it.
|
||||||
virtual int decode_packet(SrsProtocol* protocol);
|
virtual int decode_packet(SrsProtocol* protocol);
|
||||||
/**
|
/**
|
||||||
* get the decoded packet which decoded by decode_packet().
|
* get the decoded packet which decoded by decode_packet().
|
||||||
|
@ -345,6 +346,7 @@ public:
|
||||||
* @stream_id, the id of stream which is created by createStream.
|
* @stream_id, the id of stream which is created by createStream.
|
||||||
* @remark, user never free the pkt, the message will auto free it.
|
* @remark, user never free the pkt, the message will auto free it.
|
||||||
*/
|
*/
|
||||||
|
// TODO: refine the send methods.
|
||||||
virtual void set_packet(SrsPacket* pkt, int stream_id);
|
virtual void set_packet(SrsPacket* pkt, int stream_id);
|
||||||
/**
|
/**
|
||||||
* encode the packet to message payload bytes.
|
* encode the packet to message payload bytes.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue