Content Delivery
Cloud storage
Every rendered clip and compilation, copied into your own bucket the moment it renders.
Supported buckets
| Provider | What we need from you |
|---|---|
| Google Cloud Storage | Bucket name, region, and an HMAC key (access key and secret) for a service account that can create objects in the bucket. |
| Amazon S3 | Bucket name, region, and an access key pair for an IAM user that can s3:PutObject on the prefix. Alternatively, grant our AWS account write access on the bucket. |
Where files land
| Render | Object key |
|---|---|
| Clip | spectatr/segment/{accountId}/{matchId}/{clipId}/{aspectRatio}_{language}.mp4 |
| Clip with scoreboard overlay | spectatr/segment/{accountId}/{matchId}/{clipId}/{aspectRatio}_{language}_scoreboard.mp4 |
| Clip with its replay attached | spectatr/segment/{accountId}/{matchId}/{clipId}/replay_with_parent_{aspectRatio}.mp4 |
| Compilation | spectatr/compilation/{accountId}/{matchId or global}/{compilationId}/{aspectRatio}.mp4 |
Aspect ratios are written with an underscore, for example 16_9 and 9_16. {clipId} and {compilationId} are the id you receive in webhook events. Read metadata from the events, not from the key, because the layout can gain new variants.
When a file lands
- Timing
- The file is uploaded straight after the render finishes, from the same render.
- Webhook
- With a webhook configured,
render.availablefollows, carrying the full URL of the object in your bucket. - GCS URL
https://storage.googleapis.com/{bucket}/{key}- S3 URL
https://{bucket}.s3.{region}.amazonaws.com/{key}- Failure
- A failed upload sends no event for that file, and our operations team is alerted.
- Re-render
- A clip that is trimmed or re-verified renders again and overwrites the same key.
Checking access
When you share a key, we write one test object, spectatr/.spectatr-write-check.txt, to confirm we can publish. You can delete it.