1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

added base playlist support functions

This commit is contained in:
Techywarrior 2013-04-08 13:46:59 -07:00
parent 310456481f
commit 9c5a6f265e

View file

@ -0,0 +1,18 @@
var PlayList = {
queue: Array(),
addItem: function (item) {
PlayList.queue.push(item);
},
removeItem: function (index) {
PlayList.queue.splice(index, 1);
},
playItem: function (index) {
MediaPlayer.play(PlayList.queue[index]);
PlayList.queue.shift();
}
};