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:
Marco van Dijk 2021-10-28 15:53:53 +02:00 committed by Thulinma
parent 3d9ed39396
commit 19d7c9fe07
4 changed files with 459 additions and 157 deletions

View file

@ -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;