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

refine dvr and rtmp dump, write the original data.

This commit is contained in:
winlin 2015-01-07 15:01:58 +08:00
parent a402ca7120
commit 5661fc2676
6 changed files with 15 additions and 10 deletions

View file

@ -66,12 +66,13 @@ public:
virtual int write_header(char flv_header[9]);
/**
* write flv metadata.
* @param type, the type of data, or other message type.
* @param data, the amf0 metadata which serialize from:
* AMF0 string: onMetaData,
* AMF0 object: the metadata object.
* @remark assert data is not NULL.
*/
virtual int write_metadata(char* data, int size);
virtual int write_metadata(char type, char* data, int size);
/**
* write audio/video packet.
* @remark assert data is not NULL.