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

support flv inject and flv http streaming with start=bytes. 0.9.122

This commit is contained in:
winlin 2014-05-29 12:09:26 +08:00
parent d56f445076
commit 7ec202ee41
10 changed files with 241 additions and 29 deletions

View file

@ -105,6 +105,11 @@ public:
*/
virtual int write_audio(int64_t timestamp, char* data, int size);
virtual int write_video(int64_t timestamp, char* data, int size);
/**
* get the tag size,
* including the tag header, body, and 4bytes previous tag size.
*/
static int size_tag(int data_size);
private:
virtual int write_tag(char* header, int header_size, char* tag, int tag_size);
};