Skip to content

Snacks v3.1.0

Latest

Choose a tag to compare

@derekshreds derekshreds released this 04 Dec 06:20
d4044ba

Snacks v3.1.0

Automated Media Library Transcoder

A polish release for the media server and its players. PIN pads unlock as the last digit goes in, with no Unlock key to press. A new Preferred subtitles setting (Regular, SDH or Forced) picks the kind of track you want, and subtitles never fall back to a language you didn't choose. Music now shows in Now playing, with the file's format (bit depth and sample rate for FLAC) and whether the player got the original or a transcode. Snacks Player 1.1.0 gets a full pass on mouse use: hover no longer moves focus, scrolls rows or makes highlights jump. Title logos always show, and Home's layout matches the TV's. Snacks for Fire TV 1.1.0 adds opt-in motion previews on Home, and on Fire TV Edition TVs it turns the TV's virtual surround off while music plays. Transcoder-only installs get one change: the queue scheduler now stops cleanly when Snacks shuts down.


Upgrade notes

  • The media database gets one migration. On the first start with the media server on, config/mediaserver.db gains a nullable PinLength column on its player profiles. snacks.db is unchanged, and transcoder-only installs are not affected.
  • Upgrade cluster playback nodes with the master. A node encodes playback chunks only for a master on the same Snacks version. Until a node with Accept playback chunks runs 3.1.0 too, a 3.1.0 master gets no playback work from it and shows it as incompatible. Library encoding on that node carries on as before.
  • Default subtitles changed for every player, including Snacks Player and Fire TV 1.0.0, because the server makes the first choice when playback starts:
    • With Always and neither a subtitle nor an audio language set, Snacks used to pick the file's default track, whatever its language. It now picks a track in the language of the audio that plays, or none.
    • With Forced only, Snacks used to fall back to forced subtitles in the audio's language when your language had none. Now you get none.
    • Among tracks in your language, a regular track now comes before an SDH one, even when the regular one is an image track (PGS) and the SDH one is text. Where the server can burn image subtitles in, such a stream becomes a transcode. Set Preferred subtitles to SDH (with the new players) to keep the text track.
    • If you see no subtitles where you used to, the file has no track in your language. Set Subtitle language in the player's settings, or choose a track during playback.
  • Existing PINs unlock by themselves after one more use. A PIN set or changed after upgrading works at once. A PIN set before 3.1.0 still needs Unlock (or Enter) once. Snacks learns its length at that unlock, and the pad unlocks by itself from then on.
  • Signed-in devices now learn the PIN length (never the PIN) of the profiles they can switch to: every household profile on a household device, otherwise only the signed-in profile. That is how the pad knows when the last digit is in. Wrong PINs are still slowed down and locked out as before.
  • Update the players to 1.1.0 for the new player features. Auto-unlock, Preferred subtitles, the subtitle carry rules below and Fire TV previews come with Snacks Player 1.1.0 and Snacks for Fire TV 1.1.0, attached to this release.
    • Snacks Player 1.0.0 tells you 1.1.0 is out (its update check is on by default). It downloads and installs the update itself only with automatic updates turned on, on a build that can replace itself (signed macOS builds, the AppImage and .deb on Linux, Windows). Otherwise, install it from the release page.
    • Fire TV: install the 1.1.0 APK the same way as 1.0.0. It installs over the old version.
    • 1.0.0 players keep working with a 3.1.0 server: they still show the Unlock key, and they don't offer Preferred subtitles.
  • Fire TV asks for one more permission, MODIFY_AUDIO_SETTINGS, used only to switch the TV's virtual surround off during music. Android grants it at install, with no prompt.

The media server

PINs

  • The server keeps each PIN's length (4–8 digits) beside its hash, and returns it as pinLength in the User shape, so a player's pad can unlock at the last digit. Setting or changing a PIN stores its length, and clearing one clears it. For a PIN set before 3.1.0, the length is stored at its next successful unlock. No PIN is ever stored or sent in a readable form.

Subtitles

  • Preferred subtitles (subtitleType in /me/preferences: regular, the default, sdh or forced) is the kind of track picked first when full subtitles show. When your language has no track of that kind, the other kinds in your language stand in: Regular, then SDH, then Forced.
  • Never another language. The default choice only uses the language you read: your subtitle language, else your audio language. With neither set, it uses the language of the audio that plays. When that language has no track, the answer is no subtitles.
  • The kind now comes first. Among tracks in your language, the preferred kind wins, then text over image, then the track flagged default. A regular image track (PGS) now beats an SDH text track. Image tracks are only picked where the server can burn them in, and burning one in makes the stream a transcode.

Music in Now playing and History

  • Now playing shows music, one card per device. Each card shows the track, artist and album, the profile and device, and the file: codec, bit depth and sample rate for FLAC, channels, bitrate and size. It also shows what the player received (the original, or a lossless FLAC or AAC transcode, and why) and the codecs the player said it plays. Music has no playback session, so a track counts as playing from its first request until its runtime has passed plus 90 seconds, or until the device asks for another track. A player fetching the next track ahead never shows as a skip.
  • History records a music play as Transcode when the device was sent a FLAC or AAC transcode of the track, and as Direct Play when it got the file itself. Before, every music play was recorded as Direct Play.
  • This works with every player version: it reads the music requests themselves.

Snacks Player 1.1.0

PIN pad

  • Unlocks as the last digit goes in, typed or clicked. The bottom row becomes empty · 0 · ⌫, with a spinner in the empty cell while the PIN is checked.
  • An Enter pressed out of habit right after the pad unlocks is ignored, so it doesn't start the title Home shows next.
  • Two wrong PINs in a row bring the Unlock key back and accept any length, in case the PIN was changed to another length since the list was read.

Mouse and keyboard

  • Hover lights an item where it is. It never moves the keyboard's focus and never scrolls a row. The first arrow key after using the mouse shows the keyboard's place without moving it.
  • Selection pills stay on the selected option. A hovered option is tinted in place, so nothing slides after the mouse or snaps back when it leaves. With the mouse, the primary button no longer greys out while you hover another one.
  • Home's rows: only the current row answers hover, so the rows above and below never roll into place under a moving pointer. The mouse wheel steps rows from anywhere on Home, including over the title, its buttons and its picture.
  • The wheel, or a space typed in a text field, no longer switches the app to the keyboard's look.
  • Motion previews with the mouse: once a preview plays, small pointer movements over the title no longer stop it. Another tile, the top bar, a click, the wheel or leaving the window does, with a short eased return to the picture.

Home and title pages

  • Title logos always show. Small or dark logos used to give way to the title in text. Now a title with a logo always draws it, and text is used only when there is no logo or it fails to load. Home and title pages share this rule. Every tile with a picture names its title the same way.
  • Home's title panel sits just above the rows, as on Fire TV, and the description keeps two lines. In a short window, or with the music bar up, the panel gives up the people line first, then title height, the description's second line and the buttons, and only then the description.
  • The title never runs under the top bar when the music bar is up.
  • Colour and light changes are smoother. A title change blends Home's colours on one layer instead of stacking a second scrim over the picture, which used to darken it and then let go in one frame. Moving between rows crossfades the spotlight without a dip. A new picture crossfades straight from the old one instead of through a darkened one.
  • Seams fixed: a coloured line under the top bar's hairline, and gaps or overlaps between the pieces of selection pills at 100 % and 150 % display scaling.
  • Profiles: Watching now shows only while that profile really has a video going on this device, not just for being the profile in use.

Subtitles

  • Preferred subtitles in Settings (needs a Snacks 3.1.0 server).
  • The subtitle key (C) picks your preferred kind in your language, then the other kinds there, and never another language. Without a match it says No <language> subtitles for this title.
  • Carried to the next episode: if subtitles were off, a forced track is kept only when it is in the language you read.

Snacks for Fire TV 1.1.0

  • PIN pad unlocks at the last digit, with ⌫ to the right of 0 and no → key. After a wrong PIN at a known length, the app reads the profile list again, in case the PIN's length changed. Two wrong PINs in a row bring the → key back.
  • Previews on Home (Settings › Interface, off by default). Rest on a title that has a server-made clip, and it plays silently over the stage, under the stage's text. Any key fades it out, and at its end it fades back to the picture. A title plays once per visit to Home. Titles you are part-way through never play, and nothing plays with Reduce motion on. Music keeps playing.
  • Preferred subtitles in Settings (needs a Snacks 3.1.0 server). The subtitle carry rule is the same as Snacks Player's.
  • Virtual surround off during music. Fire TV Edition TVs with DTS Virtual:X apply it to everything they play, which spreads stereo music thin. While music plays, the app turns that effect off. It puts the effect back 600 ms after the music stops, so the last moment of a song isn't thrown wide. If the app closes mid-song, the next launch restores it. It only acts on a device that offers a DTS Virtual:X effect itself; elsewhere nothing changes. Films and the TV's other sound settings are untouched. While music plays, the app holds the effect, so the TV's own DTS setting doesn't change it until the music stops.
  • The profile picker no longer shows Watching now. The picker only appears when nothing is playing on the TV, so the label was never true there.

Transcoder

  • Scheduler loops stop with Snacks. Queue-scheduling loops started by a resume, a settings save or an enqueue now end when Snacks shuts down, instead of running on against a closed database. Running encodes are not stopped by this change.

Tests

  • MusicListeningTrackerTests (new): a track listed with its file and delivery until its runtime and the linger pass, the next track fetched ahead held until the current one ends (a skip takes over at once), Range requests and separate devices, and the FLAC header read (once per file).
  • MusicStreamTests: a music stream listed for Now playing with how it was served, and its History row's method.
  • SubtitleTests: the preferred kind first, the other kinds as fallbacks in the same language, no other language in any mode, and the audio's language when none is set.
  • PlayerAuthApiTests: pinLength for a PIN profile, learnt at the next unlock for a PIN from before; subtitleType saved and invalid values refused.
  • MediaServerFeatureTests: the media database's newest migration is AddPlayerPinLength.
  • More reliable test runs: every test database is now a private WAL file, as in production, so a scheduler loop and the test can query it at once. Every TranscodingService a test makes is disposed before its database, so no scheduler loop outlives it.
  • Snacks Player: PIN pad model, subtitle carry, logo fit, Home layout, preview timing and the focus engine (hover, wheel and keyboard modality).
  • Fire TV: SurroundBypassTest (new), plus the PIN pad model, subtitle carry and popup rendering.

Documentation

  • /docs/index.html: pinLength in the User shape; subtitleType in GET / PUT /me/preferences; music on GET /api/media-server/sessions; the History method for music plays; and music cards on the Now playing page.

Files Changed

Media server

  • Snacks/MediaServer/Data/Entities/AccountEntities.cs, Snacks/MediaServer/Data/Migrations/20261204001655_AddPlayerPinLength.cs (new), MediaServerDbContextModelSnapshot.cs: PlayerUsers.PinLength
  • Snacks/MediaServer/Accounts/PlayerAccountModels.cs, PlayerAccountService.cs, PlayerCredentials.cs, Snacks/MediaServer/Admin/PlayerAdminService.cs: pinLength in User, learnt at an unlock; subtitleType preference
  • Snacks/MediaServer/Api/MeController.cs, Snacks/MediaServer/Api/Playback/PlaybackSessionService.cs, Snacks/MediaServer/Playback/Subtitles/SubtitleDefaults.cs: preferred subtitle kind, no other language
  • Snacks/MediaServer/Playback/Music/MusicListeningTracker.cs (new), MusicTranscodeService.cs, Snacks/MediaServer/Playback/MediaPlaybackRegistration.cs, Snacks/MediaServer/Api/MediaStreamController.cs, Snacks/MediaServer/Api/State/UserStateService.cs: music streams and their History method
  • Snacks/MediaServer/Admin/MediaSessionsController.cs, MediaPlaybackStatusBroadcaster.cs, Snacks/wwwroot/js/media-server/now-playing.js: music in Now playing

Transcoder

  • Snacks/Services/TranscodingService.cs: scheduler loops bounded by the service's lifetime

Snacks Player

  • players/desktop/electron/auth.cjs: pinLength kept with each profile
  • players/desktop/renderer/js/components/pin-pad.js, pin-pad-model.js: auto-unlock
  • players/desktop/renderer/js/core/focus.js, platter.js, players/desktop/renderer/js/components/rail.js, stage.js, stage-panel.js, preview-model.js, intent-clock.js, players/desktop/renderer/js/views/home.js, home-geometry.js: mouse and keyboard, Home layout, previews
  • players/desktop/renderer/js/core/images.js, ambient.js, players/desktop/renderer/js/components/detail-header.js: logos, colour blends
  • players/desktop/renderer/js/player/player.js, track-carry.js, controller-model.js, players/desktop/renderer/js/views/settings.js, profiles.js: subtitles, Watching now
  • players/desktop/renderer/css/components.css, layout.css, tokens.css, views/home.css

Snacks for Fire TV

  • players/firetv/app/src/main/AndroidManifest.xml: MODIFY_AUDIO_SETTINGS
  • players/firetv/app/src/main/java/com/snacks/player/tv/playback/SurroundBypass.kt (new), Music.kt: virtual surround off during music
  • players/firetv/app/src/main/java/com/snacks/player/tv/ui/home/StagePreview.kt (new), HomeScreen.kt, data/Settings.kt, ui/settings/SettingsScreen.kt: previews on Home, Preferred subtitles
  • players/firetv/app/src/main/java/com/snacks/player/tv/ui/start/PinPadModel.kt, StartScreens.kt, api/ApiModels.kt, auth/AuthRepository.kt: auto-unlock, the picker
  • players/firetv/app/src/main/java/com/snacks/player/tv/playback/TrackCarry.kt, ui/player/PlayerViewModel.kt: subtitle carry

Documentation

  • Snacks/wwwroot/docs/index.html

Tests

  • Snacks.Tests/MediaServer/Playback/MusicListeningTrackerTests.cs (new), SubtitleTests.cs, PlaybackSessionApiTests.cs, Snacks.Tests/MediaServer/Accounts/PlayerAuthApiTests.cs, Snacks.Tests/MediaServer/Browse/MusicStreamTests.cs, Snacks.Tests/MediaServer/MediaServerFeatureTests.cs, Snacks.Tests/MediaServer/Library/FileEventTests.cs
  • Snacks.Tests/Fixtures/InMemoryDb.cs, Snacks.Tests/Cluster/ClusterServiceShell.cs, PlaybackSlotConsumerTests.cs, Snacks.Tests/Pipeline/SchedulerRotationAndClaimTests.cs, DispatchRecoveryTests.cs, BatchPriorityHookTests.cs, DbQueueTests.cs, PlaybackLeaseWaitTests.cs, ReplacementRescanWiringTests.cs
  • players/desktop/tests/: focus-engine-electron.test.mjs, shell-accounts.test.cjs, shell-fixtures/upstream.cjs, and renderer/ css-lint, home-geometry, hygiene, intent-clock, logo-fit, pin-pad-model, player-track-carry, preview-model
  • players/firetv/app/src/test/java/com/snacks/player/tv/SurroundBypassTest.kt (new), PinPadModelTest.kt, TrackCarryTest.kt, PopupLookTest.kt, FakeSnacks.kt, AwkwardLibrary.kt

Version bumps

  • Snacks/Snacks.csproj: <Version>3.1.0</Version> (single source of truth)
  • electron-app/package.json / package-lock.json, build-and-export.bat, Snacks.Tests/Settings/AppVersionTests.cs, Snacks/wwwroot/docs/index.html: synchronized via sync-version.mjs; the docs page's updated date moves to 2026-12-03
  • players/desktop/package.json / package-lock.json: Snacks Player 1.1.0
  • players/firetv/app/build.gradle.kts: Snacks for Fire TV versionName 1.1.0, versionCode 5; players/firetv/README.md
  • scripts/sync-version.mjs: matches the top-level version of electron-app/package.json again. A key added between name and version had stopped the match, and --check still passed.

Full documentation: README.md · /docs/index.html on a running instance