1
0
Fork 0
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:
runner365 2020-01-17 19:43:54 +08:00
parent 1481928b53
commit 7b9e3ecdc4
13 changed files with 1058 additions and 15 deletions

View 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