mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-27 15:07:06 +02:00
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:
parent
a99aed9ffa
commit
ea1236feef
3 changed files with 20 additions and 8 deletions
|
@ -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_);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue