mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-21 13:06:15 +02:00
Added basics for maintaining metadata by stream on server and pushing to clients.
Modified Spotify stream handler to get the track name from Libreelec's stderr. Note, to support artist/album (or album art) we need to modify Libreelec to print these.
This commit is contained in:
parent
034c7f5f98
commit
d444052233
11 changed files with 166 additions and 2 deletions
|
@ -133,6 +133,15 @@ void Controller::onMessageReceived(ClientConnection* connection, const msg::Base
|
|||
player_->setMute(serverSettings_->isMuted());
|
||||
player_->start();
|
||||
}
|
||||
else if (baseMessage.type == message_type::kStreamTags)
|
||||
{
|
||||
streamTags_.reset(new msg::StreamTags());
|
||||
streamTags_->deserialize(baseMessage, buffer);
|
||||
|
||||
LOG(INFO) << "Tag received: artist = " << streamTags_->getArtist() << "\n";
|
||||
LOG(INFO) << "Tag received: album = " << streamTags_->getAlbum() << "\n";
|
||||
LOG(INFO) << "Tag received: track = " << streamTags_->getTrack() << "\n";
|
||||
}
|
||||
|
||||
if (baseMessage.type != message_type::kTime)
|
||||
if (sendTimeSyncMessage(1000))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue