Centralized the play/stop events from playqueue

This commit is contained in:
emeric
2018-09-13 13:21:20 +02:00
parent 5e3cfffa92
commit 7264cdc364
14 changed files with 85 additions and 85 deletions
+3
View File
@@ -48,6 +48,9 @@ MediaPlayer::MediaPlayer()
_release->setTextFormat(Wt::TextFormat::Plain);
wApp->doJavaScript("LMS.mediaplayer.init(" + jsRef() + ")");
LmsApp->getEvents().trackLoaded.connect(this, &MediaPlayer::loadTrack);
LmsApp->getEvents().trackUnloaded.connect(this, &MediaPlayer::stop);
}
void