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

for hls callback, add duration of ts.

This commit is contained in:
winlin 2015-04-03 13:46:44 +08:00
parent c4466a8c0c
commit 64b065e450
6 changed files with 16 additions and 8 deletions

View file

@ -102,8 +102,9 @@ public:
* ignore if empty.
* @param file the ts file path, can be relative or absolute path.
* @param sn the seq_no, the sequence number of ts in hls/m3u8.
* @param duration the segment duration in seconds.
*/
static int on_hls(std::string url, SrsRequest* req, std::string file, int sn);
static int on_hls(std::string url, SrsRequest* req, std::string file, int sn, double duration);
private:
static int do_post(std::string url, std::string req, int& code, std::string& res);
};