Fixed live stuff

This commit is contained in:
Oswald Auguste de Bruin 2013-10-16 16:21:19 +02:00
parent f1b3ff276e
commit 1b9e594a8f
3 changed files with 5 additions and 1 deletions

View file

@ -213,7 +213,9 @@ namespace Connector_HTTP {
relurl = "/";
}
for (JSON::ArrIter it = conncapa["methods"].ArrBegin(); it != conncapa["methods"].ArrEnd(); it++){
addSource(relurl, sources, host, port, *it, most_simul, total_matches);
if (!ServConf["streams"][streamname]["meta"].isMember("live") || !it->isMember("nolive")){
addSource(relurl, sources, host, port, *it, most_simul, total_matches);
}
}
}
}

View file

@ -205,6 +205,7 @@ int main(int argc, char ** argv){
capa["methods"][0u]["handler"] = "http";
capa["methods"][0u]["type"] = "html5/video/mp4";
capa["methods"][0u]["priority"] = 8ll;
capa["methods"][0u]["nolive"] = 1;
capa["socket"] = "http_progressive_mp4";
conf.addBasicConnectorOptions(capa);
conf.parseArgs(argc, argv);

View file

@ -228,6 +228,7 @@ int main(int argc, char ** argv){
capa["methods"][0u]["handler"] = "http";
capa["methods"][0u]["type"] = "html5/video/ogg";
capa["methods"][0u]["priority"] = 8ll;
capa["methods"][0u]["nolive"] = 1;
conf.addBasicConnectorOptions(capa);
conf.parseArgs(argc, argv);