mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-17 11:06:16 +02:00
serialize stream to json
This commit is contained in:
parent
7bec5b8744
commit
95e4a98fef
11 changed files with 172 additions and 113 deletions
|
@ -164,7 +164,7 @@ void StreamServer::onMessageReceived(ControlSession* controlSession, const std::
|
|||
{"version", VERSION}
|
||||
}},
|
||||
{"clients", jClient},
|
||||
{"streams", "TODO"}
|
||||
{"streams", streamManager_->toJson()}
|
||||
};
|
||||
}
|
||||
else if (request.method == "Server.DeleteClient")
|
||||
|
@ -342,7 +342,7 @@ void StreamServer::start()
|
|||
|
||||
streamManager_.reset(new StreamManager(this, settings_.sampleFormat, settings_.codec, settings_.streamReadMs));
|
||||
for (auto& streamUri: settings_.pcmStreams)
|
||||
streamManager_->addStream(streamUri);
|
||||
logE << "Stream: " << streamManager_->addStream(streamUri)->getUri().toJson() << "\n";
|
||||
|
||||
streamManager_->start();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue