Skip to content

Commit a565b7b

Browse files
committed
Fixes #73, QUEUE_NEXT, QUEUE_PREV implemented with QUEUE_UPDATE hack
1 parent 9a7e4a0 commit a565b7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/MediaController.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,11 @@ MediaController.prototype.queueUpdate = function(items, options, callback) {
232232
};
233233

234234
MediaController.prototype.queueNext = function(callback) {
235-
this.sessionRequest({ type: 'QUEUE_NEXT' }, callback);
235+
this.sessionRequest({ type: 'QUEUE_UPDATE', jump: 1 }, callback);
236236
};
237237

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

242242
module.exports = MediaController;

0 commit comments

Comments
 (0)