mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #351, support config the m3u8/ts path for hls. 2.0.149.
This commit is contained in:
parent
85afb6ea6f
commit
692b751da8
13 changed files with 235 additions and 110 deletions
|
@ -169,6 +169,8 @@ private:
|
|||
private:
|
||||
std::string hls_entry_prefix;
|
||||
std::string hls_path;
|
||||
std::string hls_m3u8_file;
|
||||
std::string hls_ts_file;
|
||||
double hls_aof_ratio;
|
||||
int hls_fragment;
|
||||
int hls_window;
|
||||
|
@ -209,7 +211,9 @@ 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, double aof_ratio);
|
||||
virtual int update_config(SrsRequest* r, std::string entry_prefix,
|
||||
std::string path, std::string m3u8_file, std::string ts_file,
|
||||
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,
|
||||
|
@ -240,7 +244,7 @@ public:
|
|||
private:
|
||||
virtual int refresh_m3u8();
|
||||
virtual int _refresh_m3u8(std::string m3u8_file);
|
||||
virtual int create_dir();
|
||||
virtual int create_dir(std::string filepath);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue