Api
Player video API helpers. The long-running operations (SRT generation, MP4 convert, LLM fix) now run as jobs via the task tray; this only keeps the direct SRT-save helper.
Functions¶
saveSubtitles()¶
Defined in: src/features/player/api.ts:21
Persists SRT content to the active profile (POST /profiles/subtitles).
Pass file_id to overwrite an existing profile SRT in place (e.g. after
fixing it); omit it to store a new SRT file.
Parameters¶
| Parameter | Type | Description |
|---|---|---|
req |
{ content: string; file_id?: string; name?: string; } |
The save request. |
req.content |
string |
The SRT content. |
req.file_id? |
string |
An existing SRT file id to overwrite. |
req.name? |
string |
A name for a newly created file. |
Returns¶
The stored SRT file record.