mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 10:58:20 -07:00
18 lines
323 B
JavaScript
18 lines
323 B
JavaScript
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();
|
|
}
|
|
|
|
}; |