mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-27 21:38:48 +02:00
Added metadata support for Shairplay-sync/Airplay interface
This commit is contained in:
parent
ce17b0010a
commit
c820f01ca7
6 changed files with 312 additions and 7 deletions
|
@ -56,7 +56,9 @@ PcmStream::PcmStream(PcmListener* pcmListener, const StreamUri& uri) :
|
|||
else
|
||||
dryoutMs_ = 2000;
|
||||
|
||||
meta_.reset(new msg::StreamTags());
|
||||
//meta_.reset(new msg::StreamTags());
|
||||
//meta_->msg["stream"] = name_;
|
||||
setMeta(json());
|
||||
}
|
||||
|
||||
|
||||
|
@ -187,6 +189,8 @@ std::shared_ptr<msg::StreamTags> PcmStream::getMeta() const
|
|||
void PcmStream::setMeta(json jtag)
|
||||
{
|
||||
meta_.reset(new msg::StreamTags(jtag));
|
||||
meta_->msg["STREAM"] = name_;
|
||||
LOG(INFO) << "metadata=" << meta_->msg.dump(4) << "\n";
|
||||
|
||||
// Trigger a stream update
|
||||
if (pcmListener_)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue