Have timer run and update progressbar to show playing track state.

This commit is contained in:
Kevin Whitaker
2017-02-16 20:30:05 -05:00
parent 53bc31ebb9
commit b101657669
3 changed files with 37 additions and 2 deletions

View File

@@ -54,7 +54,7 @@ void WebInterface::loginCompleted()
//Login completed, now bring up main inteface.
priv_int->loginUI->animateHide(Wt::WAnimation(Wt::WAnimation::AnimationEffect::Fade));
priv_int->playerUI->animateShow(Wt::WAnimation(Wt::WAnimation::AnimationEffect::Fade, Wt::WAnimation::TimingFunction::EaseIn, 500));
//TODO: request current player state.
priv_int->playerUI->updateDetailsFromServer(GroovePlayerMgr::getInstance()->currentTrack);
}
void WebInterface::playPauseActionFromServer(User userPausing, bool pause)
@@ -66,7 +66,7 @@ void WebInterface::playPauseActionFromServer(User userPausing, bool pause)
void WebInterface::songChangedFromServer(AudioTrack nextTrack)
{
//priv_int->playerUI->tempText->setText(priv_int->playerUI->tempText->text()+"change");
priv_int->playerUI->updateDetailsFromServer(nextTrack);
triggerUpdate();
}