Skip to content

fix(playback): a session names what the server serves, its method and its audio codec - #147

Merged
gravity-zero merged 2 commits into
devfrom
fix/method-from-served-tracks
Nov 24, 2026
Merged

gravity-zero merged 2 commits into
devfrom
fix/method-from-served-tracks

Conversation

@gravity-zero

Copy link
Copy Markdown
Contributor

A play session names what the server serves: its method follows the tracks served, and its audio codec is the track served.

Reproduced end to end on a local demo (the real demo files), Tears of Steel, a session started the way an app that predates the per-track fields starts it (method transcode, no track verdicts, audio label "ac3"), then its master fetched. The master carries one audio track, "Stereo (AAC)":

0.1.12 this branch
method after the master transcode direct_stream
audio codec ac3 aac
track verdicts copy / copy copy / copy
  • Method. playback.MethodForTracks: both tracks copied (or decoded by the client) is a remux, either one encoded a transcode, direct play never renamed. Applied at StartStream and, in SQL, every time the served path is recorded (master render, audio leg). The play-method counts read this column.
  • No invented transcode. effectivePlayMethod no longer names "transcode" when no track verdict is known (a guest's player sends a routing-only verdict); the phone's admin card no longer shows "Direct" for an unknown method.
  • Audio codec. A trimmed packager presentation records the codec of the one track it carries; the web player labels its session with the track the verdict picked, not the file's first audio track (AC-3 5.1 before the stereo AAC played).

Each new test was seen red without its change; the repository test runs on Postgres.

@gravity-zero
gravity-zero merged commit 018fb4d into dev Nov 24, 2026
10 checks passed
@gravity-zero
gravity-zero deleted the fix/method-from-served-tracks branch November 24, 2026 09:17
gravity-zero added a commit that referenced this pull request Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant