Repository navigation
fix(playback): advertise PCM so WAV audiobooks can play - #707
Conversation
A WAV audiobook's track is PCM (pcm_s16le in the server's ffmpeg naming). The server's audio-only planner direct-plays only a codec the client lists, and this client never listed any PCM codec, while its progressive delivery is disabled. WAV therefore had no route at all and failed with "No validated playback route is available for this audio source." The platform audio probe now maps the raw (audio/raw) decoder Media3 plays WAV through to the integer and float PCM codec names, so the server picks direct play for WAV the same way it does for MP3, FLAC and AAC.
|
Warning Review limit reachedThis review ran on the open-source allowance, not this organization's plan, because the pull request author doesn't have an assigned seat. Waiting won't change this — ask an organization admin to assign them a seat, or add seats in Billing if every seat is already assigned, then retry. Next included review available in 50 minutes. View limit details
Comment |
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
PCM/WAV playback becomes available (and PCM tracks in other listed containers may direct-play). The Evidence link covers the phone and Android TV, but lacks the Android tablet and foldable in both folded and open states; the shared Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness. Posted via Macroscope — Visible change evidence |
|
Not adding tablet/foldable recordings. The change is in the shared playback-capability detector, and no layout changes. The tablet and foldable run the same phone player build, so their playback path is the phone path shown on the evidence page. |
Problem
Related issue: Silo-Server/silo-server#1253
Validation tasks: unblocks #349 C6; unblocks #350 C6
WAV audiobooks never play on Android. Opening one shows "No validated playback route is available for this audio source." on phone, tablet and TV, every time.
The app advertises the
wavcontainer but no PCM codec. The server's audio-only planner direct-plays only codecs the client lists, and progressive server remux isn't available to Android, so a WAV file has no route. Media3 plays PCM natively, so this change advertises it.Approach
When the platform has the
audio/rawdecoder that Media3 uses for WAV, the capability detector advertisespcm_u8,pcm_s16le,pcm_s24le,pcm_s32leandpcm_f32le, and the TV pre-playback audio check acceptsaudio/raw. No server change is needed. PCM tracks in other containers the app already lists (MKV, MOV) will now direct-play too.Validation
ReflowStyleTest > line height flows from settingsin the phone app, which this change doesn't touch.e6df1d8ed: before, the error above on phone and TV; after, the 16-bit WAV book plays twice on phone (direct play,audio/rawin Media3) and twice on Android TV. A raw ADTS AAC book still direct-plays. Only 16-bit WAV was tested; the other PCM layouts are advertised because Media3's WAV extractor handles them.Evidence
Evidence: https://evidence.siloserver.org/r/silo-android/pr-707/
Surface and build: Android phone (Android 16) and Android TV (Android 14), the WAV audiobook's player; before on
origin/maine9c410096, after on this branch; same synthetic file. Tablet uses the phone app and wasn't captured separately.Risks
A device without an
audio/rawdecoder advertises nothing new.Checklist
AI Disclosure
Note
Advertise PCM codecs for
audio/rawinPlaybackCapabilityDetectorAdds
PCM_CODEC_NAMESandplatformAudioCodecNamessoaudio/rawmaps to five PCM wire codec names instead of a single codec. The probe method now records onePlatformAudioDecodeCapabilityper mapped codec, so WAV audiobooks advertise PCM decoding. Tests cover PCM, AAC, and unknown-MIME mappings.Macroscope summarized 47643a3.