Added Stream.SetMeta and Stream.OnMetadata to JSON-RPC docs.

Also removed some code comments related to these.

Added Stream.SetMeta and Stream.OnMetadata to JSON-RPC docs.

Also removed some code comments related to these.
This commit is contained in:
Nick Steel 2021-03-17 00:19:43 +00:00 committed by badaix
parent a99aed9ffa
commit ea1236feef
3 changed files with 20 additions and 8 deletions

View file

@ -68,10 +68,6 @@ void StreamServer::addSession(const std::shared_ptr<StreamSession>& session)
void StreamServer::onMetaChanged(const PcmStream* pcmStream, std::shared_ptr<msg::StreamTags> meta)
{
// clang-format off
// Notification: {"jsonrpc":"2.0","method":"Stream.OnMetadata","params":{"id":"stream 1", "meta": {"album": "some album", "artist": "some artist", "track": "some track"...}}
// clang-format on
// Send meta to all connected clients
std::lock_guard<std::recursive_mutex> mlock(sessionsMutex_);