1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
This commit is contained in:
Luke Pulverenti 2013-04-08 17:05:11 -04:00
commit e218d950b2
2 changed files with 27 additions and 0 deletions

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();
}
};