screensaver

package module
v0.0.0-...-2b6ebe4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2022 License: BSD-3-Clause Imports: 1 Imported by: 0

README

golang-video-screensaver

A screensaver that plays a random video from a configured path on each screen. When each video finishes, it selects another at random to play.

Implemented in Golang.

Building

powershell build.ps1

Installing

A basic installer is built that will install the dependencies into a folder and write a couple of registry entries.

out/VideoGalleryInstaller.exe

Running

To test it:

out/VideoScreensaver.scr /S

To configure it:

out/VideoScreensaver.scr /C

Screensavers are regular executables that need to handle a small number of command-line arguments and have the correct semantics to exit on interaction. We do not use the functions in scrnsave.lib, but handle the command-line arguments instead.

The only awkward case to handle is being given an HWND to use as a parent window for previewing the screensaver. This works but makes the code somewhat uglier in the current implementation.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LibVlc embed.FS
View Source
var VideoGalleryExe []byte

Functions

func Config

func Config() string

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL