Have timer run and update progressbar to show playing track state.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user