[Feature] Added slideshow to gallery in wall display mode (#1224)

This commit is contained in:
Elad Lachmi
2021-04-13 07:59:37 +03:00
committed by GitHub
parent 6a4421f8e1
commit f443223d16
15 changed files with 463 additions and 55 deletions

View File

@@ -118,6 +118,7 @@ const AutostartVideo = "autostart_video"
const ShowStudioAsText = "show_studio_as_text"
const CSSEnabled = "cssEnabled"
const WallPlayback = "wall_playback"
const SlideshowDelay = "slideshow_delay"
// Logging options
const LogFile = "logFile"
@@ -560,6 +561,11 @@ func (i *Instance) GetShowStudioAsText() bool {
return viper.GetBool(ShowStudioAsText)
}
func (i *Instance) GetSlideshowDelay() int {
viper.SetDefault(SlideshowDelay, 5000)
return viper.GetInt(SlideshowDelay)
}
func (i *Instance) GetCSSPath() string {
// use custom.css in the same directory as the config file
configFileUsed := viper.ConfigFileUsed()