mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
add ts demux
This commit is contained in:
parent
1481928b53
commit
7b9e3ecdc4
13 changed files with 1058 additions and 15 deletions
23
trunk/src/srt/srt_data.hpp
Normal file
23
trunk/src/srt/srt_data.hpp
Normal file
|
@ -0,0 +1,23 @@
|
|||
#ifndef SRT_DATA_H
|
||||
#define SRT_DATA_H
|
||||
#include <string>
|
||||
#include <memory>
|
||||
|
||||
class SRT_DATA_MSG {
|
||||
public:
|
||||
SRT_DATA_MSG(unsigned char* data_p, unsigned int len, const std::string& path);
|
||||
~SRT_DATA_MSG();
|
||||
|
||||
unsigned int data_len();
|
||||
unsigned char* get_data();
|
||||
std::string get_path();
|
||||
|
||||
private:
|
||||
unsigned int _len;
|
||||
unsigned char* _data_p;
|
||||
std::string _key_path;
|
||||
};
|
||||
|
||||
typedef std::shared_ptr<SRT_DATA_MSG> SRT_DATA_MSG_PTR;
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue