aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-node/tests/test_media_cache.py
diff options
context:
space:
mode:
authorChristophe Besson <cbesson@gmail.com>2026-09-19 13:45:56 +0200
committerChristophe Besson <cbesson@gmail.com>2026-09-19 13:45:56 +0200
commitf8223293a211a87c92b1fed80f5ca53660f6b26c (patch)
tree02beb40e677389ade10c15d6040b19d67bb2dd93 /packages/meshbay-node/tests/test_media_cache.py
parenteca01c7f970d2d3ab2298f934da9776fe01179c6 (diff)
downloadmeshbay-f8223293a211a87c92b1fed80f5ca53660f6b26c.tar.gz
fix(node): the node decides which files it will transcode, not the player
`BROWSER_INCOMPATIBLE_AUDIO_EXTS` named the two formats no browser decodes and was read by nothing. The player asked for `.wma` and `.mpc` and no others, and `music-player.js` called itself "kept in sync with the node's" constant — so the entire restriction lived in the caller, and a member's own message is not the caller. What that let through: this converts a whole file and holds a transcode slot shared with video streaming while it runs. One message naming a two-hour film spends minutes of the operator's CPU and a slot every other viewer is queued behind. `AUDIO_TRANSCODE_MAX_BYTES` catches the result, after the work is done; only the extension catches the work. The client comment now says what it is — an optimisation that saves asking for a refusal — rather than implying it is the rule. Two tests: a film is refused before ffmpeg is reached, and a WMA still passes, because a gate that refuses everything is not a gate. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-node/tests/test_media_cache.py')
0 files changed, 0 insertions, 0 deletions