Support for text tags through snapcast.

Only added tags Spotify stream input from modified librespot
for now.
This commit is contained in:
frafall 2017-11-29 14:36:28 +01:00
parent af3ea660b9
commit 67083975b0
10 changed files with 206 additions and 92 deletions

View file

@ -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;
}