Merge branch 'development' into LTS_development
# Conflicts: # src/input/input.cpp
This commit is contained in:
commit
bb2e6de56a
4 changed files with 39 additions and 6 deletions
|
@ -321,6 +321,7 @@ namespace DTSC {
|
|||
std::string codec;
|
||||
std::string type;
|
||||
std::string lang;///< ISO 639-2 Language of track, empty or und if unknown.
|
||||
uint32_t minKeepAway;///<Time in MS to never seek closer than live point to
|
||||
//audio only
|
||||
int rate;
|
||||
int size;
|
||||
|
|
|
@ -1135,6 +1135,7 @@ namespace DTSC {
|
|||
width = 0;
|
||||
height = 0;
|
||||
fpks = 0;
|
||||
minKeepAway = 0;
|
||||
}
|
||||
|
||||
///\brief Constructs a track from a JSON::Value
|
||||
|
@ -1184,6 +1185,11 @@ namespace DTSC {
|
|||
keySizes.push_back((((long unsigned)tmp[i]) << 24) | (((long unsigned)tmp[i+1]) << 16) | (((long unsigned int)tmp[i+2]) << 8) | tmp[i+3]);
|
||||
}
|
||||
}
|
||||
if (trackRef.isMember("keepaway") && trackRef["keepaway"].isInt()){
|
||||
minKeepAway = trackRef["keepaway"].asInt();
|
||||
}else{
|
||||
minKeepAway = 0;
|
||||
}
|
||||
}
|
||||
|
||||
///\brief Constructs a track from a JSON::Value
|
||||
|
@ -1243,6 +1249,11 @@ namespace DTSC {
|
|||
keySizes.push_back((((long unsigned)tmp[i]) << 24) | (((long unsigned)tmp[i+1]) << 16) | (((long unsigned int)tmp[i+2]) << 8) | tmp[i+3]);
|
||||
}
|
||||
}
|
||||
if (trackRef.getMember("keepaway").getType() == DTSC_INT){
|
||||
minKeepAway = trackRef.getMember("keepaway").asInt();
|
||||
}else{
|
||||
minKeepAway = 0;
|
||||
}
|
||||
}
|
||||
|
||||
///\brief Updates a track and its metadata given new packet properties.
|
||||
|
@ -1712,6 +1723,9 @@ namespace DTSC {
|
|||
if (!skipDynamic && missedFrags) {
|
||||
result += 23;
|
||||
}
|
||||
if (minKeepAway){
|
||||
result += 19;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -1814,6 +1828,10 @@ namespace DTSC {
|
|||
writePointer(p, "\000\004fpks\001", 7);
|
||||
writePointer(p, convertLongLong(fpks), 8);
|
||||
}
|
||||
if (minKeepAway){
|
||||
writePointer(p, "\000\010keepaway\001", 11);
|
||||
writePointer(p, convertLongLong(minKeepAway), 8);
|
||||
}
|
||||
writePointer(p, "\000\000\356", 3);//End this track Object
|
||||
}
|
||||
|
||||
|
@ -1898,6 +1916,10 @@ namespace DTSC {
|
|||
conn.SendNow("\000\004fpks\001", 7);
|
||||
conn.SendNow(convertLongLong(fpks), 8);
|
||||
}
|
||||
if (minKeepAway){
|
||||
conn.SendNow("\000\010keepaway\001", 11);
|
||||
conn.SendNow(convertLongLong(minKeepAway), 8);
|
||||
}
|
||||
conn.SendNow("\000\000\356", 3);//End this track Object
|
||||
}
|
||||
|
||||
|
@ -2058,6 +2080,11 @@ namespace DTSC {
|
|||
result["height"] = height;
|
||||
result["fpks"] = fpks;
|
||||
}
|
||||
|
||||
if(minKeepAway){
|
||||
result["keepaway"] = minKeepAway;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue