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

Refine get_hls_window in time unit

This commit is contained in:
winlin 2019-04-16 08:20:32 +08:00
parent ca705a6f62
commit 917f6d066d
7 changed files with 18 additions and 16 deletions

View file

@ -140,7 +140,7 @@ private:
double hls_aof_ratio;
// TODO: FIXME: Use TBN 1000.
srs_utime_t hls_fragment;
double hls_window;
srs_utime_t hls_window;
SrsAsyncCallWorker* async;
private:
// whether use floor algorithm for timestamp.
@ -201,7 +201,7 @@ public:
*/
virtual srs_error_t update_config(SrsRequest* r, std::string entry_prefix,
std::string path, std::string m3u8_file, std::string ts_file,
srs_utime_t fragment, double window, bool ts_floor, double aof_ratio,
srs_utime_t fragment, srs_utime_t window, bool ts_floor, double aof_ratio,
bool cleanup, bool wait_keyframe, bool keys, int fragments_per_key,
std::string key_file, std::string key_file_path, std::string key_url);
/**