serialize stream to json

This commit is contained in:
badaix 2016-01-25 23:09:32 +01:00
parent 7bec5b8744
commit 95e4a98fef
11 changed files with 172 additions and 113 deletions

View file

@ -88,4 +88,12 @@ void StreamManager::stop()
}
json StreamManager::toJson() const
{
json result = json::array();
for (auto stream: streams_)
result.push_back(stream->getUri().toJson());
return result;
}