Playback
Play while it downloads
Wait on a downloading transfer to play it
POST
Play while downloading. Call it when the user presses Play or opens a transfer that is not ready, then every few seconds while the answer is ready_in or starting_in: each call keeps the download in order for the stream. streaming gives an HLS URL to play from the start; ready means the files are stored.
bearer transfers:readheader
AuthorizationBearer <token>An API key, an OAuth access token, or a signed-in session token.
Scope: transfers:read
id*stringLength
1 <= lengthapplication/json- body
clientId?stringLength
1 <= length <= 100hevc?stringValue in
"none""main""main10"When it plays
application/json- response
state*stringValue in
"ready""ready_in""starting_in""streaming""unavailable"seconds*|Range
0 <= valuereason*|Value in
"queued""measuring""finishing_soon""too_slow""not_streamable""needs_h264""processing""failed""cancelled"nullhls*|nullfileIds*array<string>availableSeconds*|Range
0 <= valuedurationSeconds*|Range
0 <= valuecurl -X POST 'https://fastwater.app/v1/transfers/string/watch' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "state": "ready", "seconds": 0, "reason": "queued", "hls": { "url": "http://example.com", "expiresAt": "2019-08-24T14:15:22Z" }, "fileIds": [ "string" ], "availableSeconds": 0, "durationSeconds": 0}