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:
parent
c4466a8c0c
commit
64b065e450
6 changed files with 16 additions and 8 deletions
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue