Skip to content

Commit

Permalink
feat(web): add setQueue method
Browse files Browse the repository at this point in the history
  • Loading branch information
jspizziri committed Nov 7, 2024
1 parent 6c4a3bd commit e126293
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions web/TrackPlayerModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e126293

Please sign in to comment.