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

fix #420, remove ts for hls ram mode.

This commit is contained in:
winlin 2015-06-05 20:38:01 +08:00
parent 679583dad6
commit 26b76c0e4c
7 changed files with 111 additions and 29 deletions

View file

@ -64,20 +64,25 @@ public:
virtual ~ISrsHlsHandler();
public:
/**
* when publish stream
*/
* when publish stream
*/
virtual int on_hls_publish(SrsRequest* req) = 0;
/**
* when update the m3u8 file.
*/
* when update the m3u8 file.
*/
virtual int on_update_m3u8(SrsRequest* r, std::string m3u8) = 0;
/**
* when reap new ts file.
*/
* when reap new ts file.
*/
virtual int on_update_ts(SrsRequest* r, std::string uri, std::string ts) = 0;
/**
* when unpublish stream
*/
* when remove the specified ts file,
* for the hls to remove the expired ts not in hls window.
*/
virtual int on_remove_ts(SrsRequest* r, std::string uri) = 0;
/**
* when unpublish stream
*/
virtual int on_hls_unpublish(SrsRequest* req) = 0;
};