Added utcoffset field to metadata to display VoD program time if supported by output

This commit is contained in:
Marco van Dijk 2021-10-28 16:28:37 +02:00 committed by Thulinma
parent 19d7c9fe07
commit 684df4b23d
4 changed files with 23 additions and 2 deletions

View file

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