add boost in because wt seems to now complain about it. Remove first song change message as it's unlikely anyone will encounter it with other events firing soon after. Start cleaning up some container/layout mess. Implement trackdetails and show this on the play controls.

This commit is contained in:
Kevin Whitaker
2017-02-16 22:55:14 -05:00
parent b101657669
commit 167b2f9084
6 changed files with 64 additions and 22 deletions

View File

@@ -221,14 +221,6 @@ void GroovePlayerMgr::grooveEventLoop()
//Now boostrap player with initial data
groove_player_attach(player, playlist);
groove_playlist_play(playlist);
Wt::WServer::instance()->postAll([&]() {
Wt::WApplication* app = Wt::WApplication::instance();
if(app != nullptr)
{
static_cast<WebInterface*>(app)->songChangedFromServer(currentTrack);
}
}
);
//Now start loop
while(getInstance()->continueEventLoop)
@@ -243,6 +235,7 @@ void GroovePlayerMgr::grooveEventLoop()
{
currentSkipRequester.clear();
currentTrack = getCurrentTrackDB(&sqlSession);
getPictureFromTrack(&currentTrack);
//Pick new batch of tracks to vote on and inform UI of update.
currentVoteBatch = getNextVoteBatch(&sqlSession);
currentVoteStatus = std::list<std::pair<AudioTrack, int>>();