mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
enhanced on_hls_notify, support HTTP GET when reap ts.
This commit is contained in:
parent
7dbc95e085
commit
e3c6e52547
9 changed files with 183 additions and 13 deletions
|
@ -105,6 +105,13 @@ public:
|
|||
* @param duration the segment duration in seconds.
|
||||
*/
|
||||
static int on_hls(std::string url, SrsRequest* req, std::string file, int sn, double duration);
|
||||
/**
|
||||
* when hls reap segment, callback.
|
||||
* @param url the api server url, to process the event.
|
||||
* ignore if empty.
|
||||
* @param ts_url the ts uri, used to replace the variable [ts_url] in url.
|
||||
*/
|
||||
static int on_hls_notify(std::string url, SrsRequest* req, std::string ts_url);
|
||||
private:
|
||||
static int do_post(std::string url, std::string req, int& code, std::string& res);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue