]> git.r.bdr.sh - rbdr/captura/blame - README.md
Use tinted PDF for Icon
[rbdr/captura] / README.md
CommitLineData
c9b9e1d6
RBR
1# Captura
2
3Bring your own backend screen recorder
4
5## Bring Your Own Backend (Protocol version 1.0)
6
7Captura allows you to define a URL that will be used to POST the recording.
8
9### The Request
10
11A `POST` will be made to the request, with the payload containing the binary
12contents of the file. You can expect the following headers:
13
14* `User-Agent`: `Captura/1.0`
15* `Content-Type`: `video/mp4` or `image/gif`, depending on the output format
16 selected.
17
18### Authentication / Authorization
19
20We will only do a POST request, so if you need any type of keys or user
21identifiers, include them in the URL itself (eg. via path elements or
22in the query parameters)
23
24### Expected Response
25
26If the upload is successful, the response *MUST* be a JSON object containing
27a key called `url` with a value of type `string` corresponding to the URL
28where the file is available. The status code *MUST* be 201 Created.
29
30Any response code other than 201 Created will be treated as an error. Captura
31will not re-attempt an upload.
578c4751
RBR
32
33## Building
34
35For development, build the app using xcode. For release, a makefile is provided
36with commands to archive and package. If you just want the built and signed app
37you can use `make archive`. To generate the whole package use `make distribute`
38
39### Signing
40
41There's no automated handling of signing. For the app to be signed correctly,
42update the signing configuration in the xcode project.