Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions site/scripts/fixtures/landing-media.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"chat-dark": {
"mp4": "https://assets.fanout.run/landing/chat-dark-0123456789ab.mp4",
"webm": "https://assets.fanout.run/landing/chat-dark-0123456789ab.webm"
"mp4": "https://assets.fanout.run/videos/chat-dark-0123456789ab.mp4",
"webm": "https://assets.fanout.run/videos/chat-dark-0123456789ab.webm"
},
"chat-light": {
"mp4": "https://assets.fanout.run/landing/chat-light-0123456789ab.mp4",
"webm": "https://assets.fanout.run/landing/chat-light-0123456789ab.webm"
"mp4": "https://assets.fanout.run/videos/chat-light-0123456789ab.mp4",
"webm": "https://assets.fanout.run/videos/chat-light-0123456789ab.webm"
},
"dashboard-dark": {
"mp4": "https://assets.fanout.run/landing/dashboard-dark-0123456789ab.mp4",
"webm": "https://assets.fanout.run/landing/dashboard-dark-0123456789ab.webm"
"mp4": "https://assets.fanout.run/videos/dashboard-dark-0123456789ab.mp4",
"webm": "https://assets.fanout.run/videos/dashboard-dark-0123456789ab.webm"
},
"dashboard-light": {
"mp4": "https://assets.fanout.run/landing/dashboard-light-0123456789ab.mp4",
"webm": "https://assets.fanout.run/landing/dashboard-light-0123456789ab.webm"
"mp4": "https://assets.fanout.run/videos/dashboard-light-0123456789ab.mp4",
"webm": "https://assets.fanout.run/videos/dashboard-light-0123456789ab.webm"
}
}
4 changes: 3 additions & 1 deletion site/scripts/landing-recordings.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ Expected assets (all at 1280 × 800):

Encoded videos stay local and are ignored by Git and Docker; PNG posters stay
in the repository so Astro can optimize them. Published videos live in the
Cloudflare R2 bucket `fanout`, served at `https://assets.fanout.run/`.
Cloudflare R2 bucket `fanout` under `videos/`, served at
`https://assets.fanout.run/videos/`. The bucket holds public assets only, in one
folder per file type.

Each slot stays poster-only until both themes have both video formats in
`site/src/data/landing-media.json`. An absent manifest also shows posters. The
Expand Down
2 changes: 1 addition & 1 deletion site/scripts/upload-clips.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const formats = ["mp4", "webm"];

export function clipObject(name, format, contents) {
const hash = createHash("sha256").update(contents).digest("hex").slice(0, 12);
const key = `landing/${name}-${hash}.${format}`;
const key = `videos/${name}-${hash}.${format}`;
return { key, url: `https://assets.fanout.run/${key}` };
}

Expand Down
4 changes: 2 additions & 2 deletions site/scripts/upload-clips.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ function setup(t) {
test("object keys and public URLs use the first 12 hex digits of SHA-256", () => {
for (const format of ["webm", "mp4"]) {
assert.deepEqual(clipObject("chat-light", format, Buffer.from("abc")), {
key: `landing/chat-light-ba7816bf8f01.${format}`,
url: `https://assets.fanout.run/landing/chat-light-ba7816bf8f01.${format}`,
key: `videos/chat-light-ba7816bf8f01.${format}`,
url: `https://assets.fanout.run/videos/chat-light-ba7816bf8f01.${format}`,
});
assert.notEqual(clipObject("chat-light", format, Buffer.from("abcd")).key,
clipObject("chat-light", format, Buffer.from("abc")).key);
Expand Down
16 changes: 8 additions & 8 deletions site/src/data/landing-media.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"chat-dark": {
"mp4": "https://assets.fanout.run/landing/chat-dark-df7f6aeae8ae.mp4",
"webm": "https://assets.fanout.run/landing/chat-dark-a40b083a1847.webm"
"mp4": "https://assets.fanout.run/videos/chat-dark-df7f6aeae8ae.mp4",
"webm": "https://assets.fanout.run/videos/chat-dark-a40b083a1847.webm"
},
"chat-light": {
"mp4": "https://assets.fanout.run/landing/chat-light-aed5fb359884.mp4",
"webm": "https://assets.fanout.run/landing/chat-light-4d3bcc09f5de.webm"
"mp4": "https://assets.fanout.run/videos/chat-light-aed5fb359884.mp4",
"webm": "https://assets.fanout.run/videos/chat-light-4d3bcc09f5de.webm"
},
"dashboard-dark": {
"mp4": "https://assets.fanout.run/landing/dashboard-dark-106bbe5a437d.mp4",
"webm": "https://assets.fanout.run/landing/dashboard-dark-5c4580915a9e.webm"
"mp4": "https://assets.fanout.run/videos/dashboard-dark-106bbe5a437d.mp4",
"webm": "https://assets.fanout.run/videos/dashboard-dark-5c4580915a9e.webm"
},
"dashboard-light": {
"mp4": "https://assets.fanout.run/landing/dashboard-light-096a6eaf1685.mp4",
"webm": "https://assets.fanout.run/landing/dashboard-light-3c5456d88c86.webm"
"mp4": "https://assets.fanout.run/videos/dashboard-light-096a6eaf1685.mp4",
"webm": "https://assets.fanout.run/videos/dashboard-light-3c5456d88c86.webm"
}
}
Loading