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