mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Make backdrop screensaver interval configurable
This commit is contained in:
parent
bb12bb94b7
commit
71abbf05f4
6 changed files with 32 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
|||
|
||||
import ServerConnections from '../../components/ServerConnections';
|
||||
import { PluginType } from '../../types/plugin.ts';
|
||||
import * as userSettings from '../../scripts/settings/userSettings';
|
||||
|
||||
class BackdropScreensaver {
|
||||
constructor() {
|
||||
|
@ -29,7 +30,10 @@ class BackdropScreensaver {
|
|||
const newSlideShow = new Slideshow({
|
||||
showTitle: true,
|
||||
cover: true,
|
||||
items: result.Items
|
||||
items: result.Items,
|
||||
autoplay: {
|
||||
delay: userSettings.backdropScreensaverInterval() * 1000
|
||||
}
|
||||
});
|
||||
|
||||
newSlideShow.show();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue