diff --git a/docs/api.md b/docs/api.md index 669eeeb..c48d6fe 100644 --- a/docs/api.md +++ b/docs/api.md @@ -102,7 +102,7 @@ Starts the scrape in the background to fill the cache (used for next episode). For clients that can't play browser media: Roblox only gets whole HTTP bodies (server-side HttpService) and decodes video in Luau. A session runs one ffmpeg that turns a playback path into numbered MPEG-TS segments, **MPEG-1 video + MP2 audio** (the jsmpeg recipe), in a temp dir. -Code: `src/routes/rbx.js`, `src/media/rbx.js`. Tests: `node --test test/`. +Code: `src/routes/rbx.js`, `src/media/rbx.js`. Tests: `node --test test/rbx.test.js` (needs ffmpeg/ffprobe on PATH). ### `GET /v1/rbx/open?src=&start=&w=&h=&fps=&vb=&ab=&audio=` - `src` (required): an API-relative playback path — `/v1/p//…`, `/v1/remux/` or diff --git a/test/rbx.test.js b/test/rbx.test.js index 44ee864..3060575 100644 --- a/test/rbx.test.js +++ b/test/rbx.test.js @@ -1,4 +1,4 @@ -// node --test test/ — /v1/rbx transcode sessions against a real server + ffmpeg. +// node --test test/rbx.test.js — /v1/rbx transcode sessions against a real server + ffmpeg. // Input: a generated 90 s testsrc + sine mp4 served by a local range server // (allowPrivateTargets), reached through the API's own proxy / remux tokens. const { test, before, after } = require('node:test');