1
0
Fork 0
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:
newo-2001 2023-08-12 15:43:47 +02:00
parent bb12bb94b7
commit 71abbf05f4
6 changed files with 32 additions and 2 deletions

View file

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