mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix the on_hls.ts_url bug.
This commit is contained in:
parent
34d1ce9922
commit
2830ee12c1
7 changed files with 60 additions and 3 deletions
|
@ -668,6 +668,21 @@ extern int srs_get_local_port(int fd);
|
|||
// where peer ip is the client public ip which connected to server.
|
||||
extern std::string srs_get_peer_ip(int fd);
|
||||
|
||||
// whether the url is starts with http:// or https://
|
||||
extern bool srs_string_is_http(std::string url);
|
||||
|
||||
// whether string is digit number
|
||||
// is_digit("1234567890") === true
|
||||
// is_digit("0123456789") === false
|
||||
// is_digit("1234567890a") === false
|
||||
// is_digit("a1234567890") === false
|
||||
extern bool srs_is_digit_number(const std::string& str);
|
||||
// whether string is boolean
|
||||
// is_bool("true") == true
|
||||
// is_bool("false") == true
|
||||
// otherwise, false.
|
||||
extern bool srs_is_boolean(const std::string& str);
|
||||
|
||||
// dump summaries for /api/v1/summaries.
|
||||
extern void srs_api_dump_summaries(std::stringstream& ss);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue