New display setting to configure slideshow delay

This commit is contained in:
Richard Nesnass
2025-07-23 01:01:12 +02:00
committed by Bill Thornton
parent c2df080ad8
commit a2fef21af2
7 changed files with 52 additions and 1 deletions
+4 -1
View File
@@ -1,4 +1,5 @@
import { ServerConnections } from 'lib/jellyfin-apiclient';
import * as userSettings from '../../scripts/settings/userSettings';
import { PluginType } from 'types/plugin.ts';
export default class PhotoPlayer {
@@ -24,7 +25,9 @@ export default class PhotoPlayer {
interval: 11000,
interactive: true,
// playbackManager.shuffle has no options. So treat 'shuffle' as a 'play' action
autoplay: options.autoplay || options.shuffle,
autoplay: {
delay: userSettings.slideshowInterval() * 1000
},
user: result
});