huynhsontung / Screenbox

LibVLC-based media player for the Universal Windows Platform
GNU General Public License v3.0
781 stars 34 forks source link

Lively Wallpaper music visualizer support #390

Open rocksdanister opened 2 weeks ago

rocksdanister commented 2 weeks ago

https://github.com/huynhsontung/Screenbox/assets/17554161/b86e39df-d921-4017-82f1-cde3eff6a492

Added webpage wallpaper feature of Lively Wallpaper for music visualizer: https://github.com/rocksdanister/lively/wiki/Web-Guide-V-:-System-Data

WebView2 is used for rendering. For efficiency WebView2 process is set to shutdown when AudioOnly is false, you can change this behavior by using a custom flag variable (for example scenarios like playing video and audio mixed queue) or removing the x:Load line in the control.

Included one wallpaper in the Assets\Visualizers path. Users can install additional wallpaper which gets installed to AppData LocalState\Visualizers\ folder (only wallpapers using NowPlaying API are enabled right now.)

Example wallpapers: https://github.com/rocksdanister/audio-visualizer-wallpaper

I have also added support for audio data but untested since the feature is not available in Screenbox.