mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
This commit is contained in:
commit
e218d950b2
2 changed files with 27 additions and 0 deletions
18
dashboard-ui/scripts/playlist.js
Normal file
18
dashboard-ui/scripts/playlist.js
Normal 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();
|
||||
}
|
||||
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue