Skip to content

Commit

Permalink
Fixes #73, QUEUE_NEXT, QUEUE_PREV implemented with QUEUE_UPDATE hack
Browse files Browse the repository at this point in the history
  • Loading branch information
i8beef committed Jul 6, 2023
1 parent 9a7e4a0 commit a565b7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/MediaController.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,11 @@ MediaController.prototype.queueUpdate = function(items, options, callback) {
};

MediaController.prototype.queueNext = function(callback) {
this.sessionRequest({ type: 'QUEUE_NEXT' }, callback);
this.sessionRequest({ type: 'QUEUE_UPDATE', jump: 1 }, callback);
};

MediaController.prototype.queuePrev = function(callback) {
this.sessionRequest({ type: 'QUEUE_PREV' }, callback);
this.sessionRequest({ type: 'QUEUE_UPDATE', jump: -1 }, callback);
};

module.exports = MediaController;

0 comments on commit a565b7b

Please sign in to comment.