Get a playback URL
Get a signed playback URL, subtitles, and the saved position
The URL supports HTTP Range and expires at expiresAt. When it returns 403, call this endpoint again for a new URL.
Send a stable clientId per device and the same one with progress updates. Each client that played in the last 60 seconds is a screen; a new client past the plan's screens gets 409 screen_limit with the active sessions.
prepare: true returns the same answer before the Play press, so a player can start buffering on the detail screen: it claims no screen, though it gets 409 screen_limit when other clients use every screen, the URL expires within 15 minutes, and it has its own rate limit. On Play, call again without prepare while playing the prepared URL, and stop if that call returns 409.
Send hevc with what the screen decodes of HEVC. A screen that cannot decode the file's video plays an H.264 copy, which Fastwater makes the first time a screen asks. Until it is ready, the answer has conversion (queued or converting, with progress), claims no screen (with the same 409 as prepare), and its URL is the HEVC file: show the wait, and ask again with prepare: true every few seconds until conversion is null.
bearer files:readAuthorizationBearer <token>An API key, an OAuth access token, or a signed-in session token.
Scope: files:read
id*string1 <= lengthapplication/json- body
clientId?string1 <= length <= 100deviceLabel?string1 <= length <= 100prepare?booleanoriginal?booleanhevc?string"none""main""main10"inlineHls?booleanPlayback
application/json- response
url*stringuriexpiresAt*stringdate-timemimeType*stringplayable*booleanprogress*|nullsubtitles*array<>conversion*|nullhls?|nullmarkers?|nulltrackPreference?|nulloriginalLanguage?string|nullcurl -X POST 'https://fastwater.app/v1/files/string/playback' \ -H 'Content-Type: application/json' \ -d '{}'{ "url": "http://example.com", "expiresAt": "2019-08-24T14:15:22Z", "mimeType": "string", "playable": true, "progress": { "fileId": "string", "positionSeconds": 0, "durationSeconds": 0, "completed": true, "clientId": "string", "updatedAt": "2019-08-24T14:15:22Z" }, "subtitles": [ { "id": "string", "language": "string", "label": "string", "forced": true, "default": true, "source": "embedded", "url": "http://example.com" } ], "conversion": { "state": "queued", "progress": 0, "etaSeconds": 0, "stream": { "url": "http://example.com", "expiresAt": "2019-08-24T14:15:22Z" }, "streamInSeconds": 0 }, "hls": { "url": "http://example.com", "tvUrl": "http://example.com", "inline": { "playlists": { "property1": "string", "property2": "string" }, "initSegments": { "property1": "string", "property2": "string" } } }, "markers": { "intro": { "startSeconds": 0, "endSeconds": 0 }, "credits": { "startSeconds": 0 } }, "trackPreference": { "audio": { "language": "string", "commentary": true, "descriptive": true }, "subtitles": { "language": "string", "forced": true, "hearingImpaired": true, "commentary": true } }, "originalLanguage": "string"}