Add stream type (live/vod) to info/embed information.
This commit is contained in:
parent
d8cce3da11
commit
5e57ae56c4
1 changed files with 6 additions and 0 deletions
|
@ -178,6 +178,12 @@ namespace Connector_HTTP {
|
||||||
json_resp["width"] = 640ll;
|
json_resp["width"] = 640ll;
|
||||||
json_resp["height"] = 480ll;
|
json_resp["height"] = 480ll;
|
||||||
}
|
}
|
||||||
|
if (ServConf["streams"][streamname]["meta"].isMember("vod")){
|
||||||
|
json_resp["type"] = "vod";
|
||||||
|
}
|
||||||
|
if (ServConf["streams"][streamname]["meta"].isMember("live")){
|
||||||
|
json_resp["type"] = "live";
|
||||||
|
}
|
||||||
//find out which connectors are enabled
|
//find out which connectors are enabled
|
||||||
std::set<std::string> conns;
|
std::set<std::string> conns;
|
||||||
for (JSON::ArrIter it = ServConf["config"]["protocols"].ArrBegin(); it != ServConf["config"]["protocols"].ArrEnd(); it++){
|
for (JSON::ArrIter it = ServConf["config"]["protocols"].ArrBegin(); it != ServConf["config"]["protocols"].ArrEnd(); it++){
|
||||||
|
|
Loading…
Add table
Reference in a new issue