Added utcoffset field to metadata to display VoD program time if supported by output
This commit is contained in:
parent
19d7c9fe07
commit
684df4b23d
4 changed files with 23 additions and 2 deletions
|
@ -746,6 +746,7 @@ namespace Mist{
|
|||
}
|
||||
tsStream.clear();
|
||||
// set bootMsOffset in order to display the program time correctly in the player
|
||||
meta.setUTCOffset(streamOffset + (Util::unixMS() - Util::bootMS()));
|
||||
meta.setBootMsOffset(streamOffset);
|
||||
return true;
|
||||
}
|
||||
|
@ -837,8 +838,8 @@ namespace Mist{
|
|||
}
|
||||
|
||||
// set bootMsOffset in order to display the program time correctly in the player
|
||||
meta.setUTCOffset(streamOffset + (Util::unixMS() - Util::bootMS()));
|
||||
meta.setBootMsOffset(streamOffset);
|
||||
|
||||
if (streamIsLive || isLiveDVR){return true;}
|
||||
|
||||
// Set local vars used for parsing existing headers
|
||||
|
|
|
@ -505,7 +505,15 @@ namespace Mist{
|
|||
}
|
||||
json_resp["type"] = (M.getLive() ? "live" : "vod");
|
||||
if (M.getLive()){
|
||||
json_resp["unixoffset"] = M.getBootMsOffset() + (Util::unixMS() - Util::bootMS());
|
||||
if (M.getUTCOffset()){
|
||||
json_resp["unixoffset"] = M.getUTCOffset();
|
||||
}else{
|
||||
json_resp["unixoffset"] = M.getBootMsOffset() + (Util::unixMS() - Util::bootMS());
|
||||
}
|
||||
}else{
|
||||
if (M.getUTCOffset()){
|
||||
json_resp["unixoffset"] = M.getUTCOffset();
|
||||
}
|
||||
}
|
||||
|
||||
// show ALL the meta datas!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue