diff --git a/src/models/shared/Playlist.ts b/src/models/shared/Playlist.ts index f96ebea..9ca749a 100644 --- a/src/models/shared/Playlist.ts +++ b/src/models/shared/Playlist.ts @@ -129,7 +129,9 @@ export class Playlist { 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 { diff --git a/src/models/shared/Track.ts b/src/models/shared/Track.ts index b93875f..1965890 100644 --- a/src/models/shared/Track.ts +++ b/src/models/shared/Track.ts @@ -27,6 +27,8 @@ export class Track { */ remoteImages?: RemoteImageResult; + playing: boolean; + constructor( id: string, name: string,