mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
merge from srs2.
This commit is contained in:
commit
ffef3905af
5 changed files with 26 additions and 3 deletions
|
@ -557,6 +557,12 @@ int SrsHlsMuxer::segment_open(int64_t segment_start_dts)
|
|||
current->uri += hls_entry_prefix;
|
||||
if (!hls_entry_prefix.empty() && !srs_string_ends_with(hls_entry_prefix, "/")) {
|
||||
current->uri += "/";
|
||||
|
||||
// add the http dir to uri.
|
||||
string http_dir = srs_path_dirname(m3u8_url);
|
||||
if (!http_dir.empty()) {
|
||||
current->uri += http_dir + "/";
|
||||
}
|
||||
}
|
||||
current->uri += ts_url;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue