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:
@@ -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(¤tTrack);
|
||||
//Pick new batch of tracks to vote on and inform UI of update.
|
||||
currentVoteBatch = getNextVoteBatch(&sqlSession);
|
||||
currentVoteStatus = std::list<std::pair<AudioTrack, int>>();
|
||||
|
||||
Reference in New Issue
Block a user