After rendering a video the link to the CDN location where the video is hosted isn’t working for me.
For instance, here’s the full json of a get render status response that’s ‘done’:
{
"success": true,
"message": "OK",
"response": {
"id": "6a16f2bb-c815-4d5a-ad35-666461c3aec5",
"owner": "5s4o9sy3u8",
"status": "done",
"data": {
"timeline": {
"tracks": [
{
"clips": [
{
"asset": {},
"start": 0,
"length": 14.96,
"scale": 0.2,
"position": "topLeft",
"offset": { "x": 0.095, "y": -0.26 }
},
{
"asset": {},
"start": 0,
"length": 14.96,
"scale": 0.07,
"position": "topRight",
"offset": { "x": -0.26, "y": -0.0255 }
},
{
"asset": {},
"start": 0,
"length": 14.96,
"position": "top",
"offset": { "x": -0.057, "y": 0.01 }
},
{
"asset": {},
"start": 0,
"length": 14.96,
"position": "center",
"offset": { "x": 0.025 }
},
{
"asset": {},
"start": 0,
"length": 14.96,
"position": "bottom",
"offset": { "x": -0.15, "y": 0.1 }
}
]
},
{ "clips": [{ "asset": {}, "start": 0, "length": 15 }] }
],
"soundtrack": {
"src": "[REDACTED]/shot-stack-assets/katy-perry-roar.mp3",
"effect": "fadeInFadeOut"
},
"background": "#000000",
"fonts": [
{
"src": "[REDACTED]/shot-stack-assets/fonts/Montserrat-Regular.ttf"
},
{
"src": "[REDACTED]/shot-stack-assets/fonts/Montserrat-Bold.ttf"
}
]
},
"output": {
"format": "mp4",
"resolution": "hd",
"poster": { "capture": 1 }
}
},
"created": "2022-07-05T02:52:23.040Z",
"updated": "2022-07-05T02:52:42.225Z",
"plan": "free",
"error": "",
"duration": 15,
"renderTime": 16844.35,
"url": "https://shotstack-api-v1-output.s3-ap-southeast-2.amazonaws.com/5s4o9sy3u8/6a16f2bb-c815-4d5a-ad35-666461c3aec5.mp4",
"poster": "https://shotstack-api-v1-output.s3-ap-southeast-2.amazonaws.com/5s4o9sy3u8/6a16f2bb-c815-4d5a-ad35-666461c3aec5-poster.jpg",
"thumbnail": null
}
}
When I construct the URL for the video based off of this article: Host and Serve Video and Images | Shotstack Documentation
I’m getting a 403 unauthorized and can’t download the video.
This is the CDN url that I believe should work but doesn’t seem to be from the above example: https://cdn.shotstack.io/au/v1/5s4o9sy3u8/6a16f2bb-c815-4d5a-ad35-666461c3aec5.mp4
Am I making a mistake somewhere?
Also following the s3 bucket url from the response works right now, but that may change in the next 24 hours or so when the bucket is emptied.