Added HLS DVR mode
Moved some duplicate code to seperate functions for readability Fix EXT-X-PROGRAM-DATE-TIME tag for VoD Set bootMSoffset for live DVR streams Implemented readExistingHeader for HLS input set zUTC time based on EXT-X-PROGRAM-DATE-TIME tag rather than guessing
This commit is contained in:
parent
3d9ed39396
commit
19d7c9fe07
4 changed files with 459 additions and 157 deletions
|
@ -196,6 +196,15 @@ std::string HTTP::URL::getFilePath() const{
|
|||
return "/" + path;
|
||||
}
|
||||
|
||||
/// Returns whether the URL is probably pointing to a local file
|
||||
bool HTTP::URL::isLocalPath() const{
|
||||
// If we have no host, protocol or port we can assume it is a local path
|
||||
if (host.size() || protocol.size() || port.size()){
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/// Returns the URL in string format without auth and frag
|
||||
std::string HTTP::URL::getProxyUrl() const{
|
||||
std::string ret;
|
||||
|
|
|
@ -20,6 +20,7 @@ namespace HTTP{
|
|||
std::string getFilePath() const;
|
||||
std::string getBareUrl() const;
|
||||
std::string getProxyUrl() const;
|
||||
bool isLocalPath() const;
|
||||
std::string host; ///< Hostname or IP address of URL
|
||||
std::string protocol; ///< Protocol of URL
|
||||
std::string port; ///< Port of URL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue