Playback
Save progress while it downloads
Save where the user is in a transfer they watch while it downloads
PUT
Play while downloading: the file has no watch progress until it is stored, so the position waits on the transfer (resume, and GET /v1/transfers?resumable=true) and moves to the file's progress once it is stored. Send it every few seconds while playing, as PUT /v1/files/{id}/progress. A finished video keeps none.
bearer progress:writeheader
AuthorizationBearer <token>An API key, an OAuth access token, or a signed-in session token.
Scope: progress:write
id*stringLength
1 <= lengthapplication/json- body
positionSeconds*numberRange
0 <= value <= 10000000durationSeconds*numberRange
0 <= value <= 10000000clientId?stringLength
length <= 100updatedAt?stringFormat
date-timeThe transfer
application/json- response
id*stringstatus*stringValue in
"queued""downloading""ingesting""completed""failed""cancelled"waitingForSlot?booleanoutcome*stringValue in
"hit""attached""miss"sourceType*stringValue in
"magnet""torrent""upload""putio"infoHash*stringMatch
^[0-9a-f]{40}$name*string|nulltotalBytes*integer|nullprogress*numberRange
0 <= value <= 1speedBps*integeretaSeconds*integer|nullprocessingProgress*|Range
0 <= value <= 1fileCount*|Range
0 <= valueerror*string|nullfolder*string|nullfileIds*array<string>rssFeed*|nullrestore?booleantitle?|nullresume?|nullcreatedAt*stringFormat
date-timeupdatedAt*stringFormat
date-timecurl -X PUT 'https://fastwater.app/v1/transfers/string/progress' \ -H 'Content-Type: application/json' \ -d '{ "positionSeconds": 0, "durationSeconds": 0}'Example Response
{ "id": "string", "status": "queued", "waitingForSlot": true, "outcome": "hit", "sourceType": "magnet", "infoHash": "string", "name": "string", "totalBytes": 0, "progress": 0, "speedBps": 0, "etaSeconds": 0, "processingProgress": 0, "fileCount": 0, "error": "string", "folder": "string", "fileIds": [ "string" ], "rssFeed": { "id": "string", "title": "string" }, "restore": true, "title": { "tmdbId": 1, "kind": "movie", "season": 0, "episode": 0 }, "resume": { "positionSeconds": 0, "durationSeconds": 0, "updatedAt": "2019-08-24T14:15:22Z" }, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}