diff --git a/web/TrackPlayerModule.ts b/web/TrackPlayerModule.ts index 9d198a11d..6150e2bf9 100644 --- a/web/TrackPlayerModule.ts +++ b/web/TrackPlayerModule.ts @@ -152,6 +152,11 @@ export class TrackPlayerModule extends PlaylistPlayer { return this.playlist; } + public async setQueue(queue: Track[]) { + await this.stop(); + this.playlist = queue; + } + public getActiveTrack(): Track | undefined { return this.current; }