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

Merge pull request #2941 from jellyfin/slideshow-play

Slideshow autoplay
This commit is contained in:
Bill Thornton 2021-09-09 10:55:54 -04:00 committed by GitHub
commit 059168a496
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 4 deletions

View file

@ -666,12 +666,14 @@ class ItemsView {
if (currentItem && !self.hasFilters) {
playbackManager.play({
items: [currentItem]
items: [currentItem],
autoplay: true
});
} else {
getItems(self, self.params, currentItem, null, null, 300).then(function (result) {
playbackManager.play({
items: result.Items
items: result.Items,
autoplay: true
});
});
}
@ -701,7 +703,8 @@ class ItemsView {
} else {
getItems(self, self.params, currentItem, 'Random', null, 300).then(function (result) {
playbackManager.play({
items: result.Items
items: result.Items,
autoplay: true
});
});
}