api: rbx test invocation in docs
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
68d4924a77
commit
34ef0d23cf
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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
|
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
|
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.
|
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=`
|
### `GET /v1/rbx/open?src=&start=&w=&h=&fps=&vb=&ab=&audio=`
|
||||||
- `src` (required): an API-relative playback path — `/v1/p/<token>/…`, `/v1/remux/<token>` or
|
- `src` (required): an API-relative playback path — `/v1/p/<token>/…`, `/v1/remux/<token>` or
|
||||||
|
|||||||
+1
-1
@@ -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
|
// Input: a generated 90 s testsrc + sine mp4 served by a local range server
|
||||||
// (allowPrivateTargets), reached through the API's own proxy / remux tokens.
|
// (allowPrivateTargets), reached through the API's own proxy / remux tokens.
|
||||||
const { test, before, after } = require('node:test');
|
const { test, before, after } = require('node:test');
|
||||||
|
|||||||
Reference in new issue
Block a user