Add playing attribute for track

This commit is contained in:
Manuel 2023-03-28 21:04:10 +02:00
parent 091ca0b65f
commit 28a32033c4
2 changed files with 5 additions and 1 deletions

View File

@ -129,7 +129,9 @@ export class Playlist {
this.activeTrackIndex = 0; this.activeTrackIndex = 0;
} }
this.eventEmitter.emit('internal.audio.announce', this.getActiveTrack()); const activeTrack = this.getActiveTrack();
activeTrack.playing = true;
this.eventEmitter.emit('internal.audio.announce', activeTrack);
} }
private isActiveTrackOutOfSync(): boolean { private isActiveTrackOutOfSync(): boolean {

View File

@ -27,6 +27,8 @@ export class Track {
*/ */
remoteImages?: RemoteImageResult; remoteImages?: RemoteImageResult;
playing: boolean;
constructor( constructor(
id: string, id: string,
name: string, name: string,