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

support config the audio overflow ratio.

This commit is contained in:
winlin 2015-03-19 17:24:27 +08:00
parent e319da3329
commit 0319e85f99
5 changed files with 43 additions and 16 deletions

View file

@ -169,6 +169,7 @@ private:
private:
std::string hls_entry_prefix;
std::string hls_path;
double hls_aof_ratio;
int hls_fragment;
int hls_window;
private:
@ -208,7 +209,7 @@ public:
/**
* when publish, update the config for muxer.
*/
virtual int update_config(SrsRequest* r, std::string entry_prefix, std::string path, int fragment, int window);
virtual int update_config(SrsRequest* r, std::string entry_prefix, std::string path, int fragment, int window, double aof_ratio);
/**
* open a new segment(a new ts file),
* @param segment_start_dts use to calc the segment duration,