Knowledge Base updated: 2026-11-22
Screenbox knowledge base
Orientation
Screenbox is a Windows media player built around WinUI presentation, view models, media-library workflows, LibVLC-backed playback, and persistent local application state.
The application shell coordinates navigation across library, discovery, playback, and settings experiences. Playback consumes resolved media sources and exposes queue, track, progress, and rendering state to the UI.
Critical state includes indexed media and playlists, saved playback progress, application settings, the active play queue, and integrations with casting and Lively Wallpaper.
flowchart LR
UI[WinUI application shell] --> Nav[Navigation and page view models]
Nav --> Library[Media library and discovery]
Nav --> Playback[Playback coordination]
Nav --> Settings[Settings views]
Library --> Sources[Media source resolution]
Library --> Database[(Library database)]
Library --> Search[Search services]
Playback --> Queue[Play queue]
Playback --> VLC[LibVLC playback engine]
VLC --> Video[Video rendering surface]
Playback --> History[(Playback history)]
Settings --> Preferences[(Settings storage)]
Playback --> Cast[Casting]
Playback --> Lively[Lively Wallpaper]
Glossary
- Play queue — The ordered set of media items and current-selection state used for playback.
- Media source — A file, URI, playlist, or other input expanded into playable media items.
- Library context — Application state and services used to index, organize, and browse media.
- VLC playback item — The LibVLC-backed representation of a selected media item and its tracks.
- Lively — The external Lively Wallpaper integration used to coordinate wallpaper media.
Invariants
- UI workflows should expose playback and library behavior through view models rather than directly coupling pages to media engines; evidence:
src/Screenbox/Views/**andsrc/Screenbox/ViewModels/**. - Playable requests must be resolved into media-source items before playback is started; evidence:
src/Screenbox.Core/MediaSources/**. - Persistent library, playlist, and progress state is owned by database-facing services rather than page state; evidence:
src/Screenbox.Core/Services/**andsrc/Screenbox.Core/Database/**. - VLC-specific rendering and track behavior remains behind playback and rendering abstractions; evidence:
src/Screenbox.LibVLC/**andsrc/Screenbox/Controls/**. - User preferences are stored through settings abstractions so settings pages do not own persistence details; evidence:
src/Screenbox.Core/Settings/**.
Routing table
src/Screenbox/App.xaml, src/…/App.xaml.cs,src/Screenbox/MainWindow.xaml, src/…/MainWindow.xaml.cs,src/Screenbox/Views/Shell/**-> docs/application-shell.mdsrc/Screenbox/Views/**,src/Screenbox/ViewModels/**-> docs/page-navigation.mdsrc/Screenbox.UI/**,src/Screenbox/Controls/**,src/Screenbox/Behaviors/**,src/Screenbox/Converters/**,src/Screenbox/Styles/**-> docs/ui-controls-and-theming.mdsrc/Screenbox.Core/Playback/**,src/Screenbox.LibVLC/**,src/Screenbox/Services/Playback/**-> docs/media-playback.mdsrc/Screenbox.LibVLC/**,src/Screenbox.Core/Playback/Tracks/**-> docs/vlc-playback-engine.mdsrc/Screenbox.Core/Playback/Queue/**,src/Screenbox.Core/Playback/Services/**,src/Screenbox/ViewModels/Playback/**-> docs/play-queue-and-controls.mdsrc/Screenbox/Controls/VideoView/**,src/Screenbox/Controls/SwapChainPanel/**,src/Screenbox.LibVLC/Rendering/**-> docs/video-rendering.mdsrc/Screenbox.Core/Library/**,src/Screenbox.Core/Media/**,src/Screenbox/ViewModels/Library/**-> docs/media-library.mdsrc/Screenbox.Core/MediaSources/**,src/Screenbox.Core/Services/MediaSource/**-> docs/media-source-resolution.mdsrc/Screenbox.Core/Library/**,src/Screenbox.Core/Files/**,src/Screenbox.Core/Metadata/**-> docs/library-indexing-and-files.mdsrc/Screenbox.Core/Playlists/**,src/Screenbox.Core/RecentMedia/**,src/Screenbox/ViewModels/Playlists/**-> docs/playlists-and-recent-media.mdsrc/Screenbox.Core/Search/**,src/Screenbox/ViewModels/Search/**-> docs/search-and-content-discovery.mdsrc/Screenbox.Core/Database/**,src/Screenbox.Core/Settings/**,src/Screenbox.Core/Persistence/**-> docs/data-and-settings.mdsrc/Screenbox.Core/Database/**,src/Screenbox.Core/Playback/History/**,src/Screenbox.Core/Playlists/Persistence/**-> docs/database-and-playback-history.mdsrc/Screenbox.Core/Settings/**,src/Screenbox/ViewModels/Settings/**,src/Screenbox/Views/Settings/**-> docs/settings-storage.mdsrc/Screenbox.Core/Casting/**,src/Screenbox.Core/Lively/**,src/Screenbox/ViewModels/Casting/**-> docs/external-media-integrations.mdsrc/Screenbox.Core/Casting/**,src/Screenbox/ViewModels/Casting/**,src/Screenbox/Views/Casting/**-> docs/casting.mdsrc/Screenbox.Core/Lively/**,src/Screenbox/ViewModels/Lively/**,src/Screenbox/Views/Lively/**-> docs/lively-wallpaper-integration.md