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

for #179, refine dvr, support POST create dvr when publish not start. 2.0.126

This commit is contained in:
winlin 2015-02-27 20:39:36 +08:00
parent b903a7b436
commit 0213cc6466
11 changed files with 265 additions and 174 deletions

View file

@ -195,11 +195,15 @@ private:
*/
SrsCodecAudio acodec;
public:
SrsHlsMuxer(ISrsHlsHandler* h);
SrsHlsMuxer();
virtual ~SrsHlsMuxer();
public:
virtual int sequence_no();
public:
/**
* initialize the hls muxer.
*/
virtual int initialize(ISrsHlsHandler* h);
/**
* when publish, update the config for muxer.
*/
@ -325,9 +329,13 @@ private:
*/
int64_t stream_dts;
public:
SrsHls(SrsSource* s, ISrsHlsHandler* h);
SrsHls();
virtual ~SrsHls();
public:
/**
* initialize the hls by handler and source.
*/
virtual int initialize(SrsSource* s, ISrsHlsHandler* h);
/**
* publish stream event, continue to write the m3u8,
* for the muxer object not destroyed.