mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-31 15:19:53 +02:00
Support for text tags through snapcast.
Only added tags Spotify stream input from modified librespot for now.
This commit is contained in:
parent
af3ea660b9
commit
67083975b0
10 changed files with 206 additions and 92 deletions
|
@ -56,8 +56,7 @@ PcmStream::PcmStream(PcmListener* pcmListener, const StreamUri& uri) :
|
|||
else
|
||||
dryoutMs_ = 2000;
|
||||
|
||||
// meta_.reset(new msg::StreamTags);
|
||||
meta_ = make_shared<msg::StreamTags>();
|
||||
meta_.reset(new msg::StreamTags());
|
||||
}
|
||||
|
||||
|
||||
|
@ -172,8 +171,11 @@ json PcmStream::toJson() const
|
|||
{"uri", uri_.toJson()},
|
||||
{"id", getId()},
|
||||
{"status", state},
|
||||
{"meta", meta_->toJson()}
|
||||
};
|
||||
|
||||
if(meta_)
|
||||
j["meta"] = meta_->msg;
|
||||
|
||||
return j;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue