current track on wait

This commit is contained in:
_Bastler
2022-01-03 12:56:29 +01:00
parent eb6e3f93ba
commit 329e4acccb
3 changed files with 19 additions and 0 deletions
@@ -62,6 +62,11 @@ export class JukeboxComponent implements OnInit {
} else if (error.status == 402) {
this.wait = true;
this.timeout = 60 - error.error;
this.jukeboxService.current().subscribe((response) => {
this.currentTrack = response;
});
this.timer = setInterval(() => {
this.timeout--;
if (this.timeout == 0) {