PulseCanvas / website · pulsecanvas.ai / media.config.js
| 1 | // The films play from our Cloudflare R2 bucket at media.protomota.com/video/<slug>/ (1080p, and 720p |
| 2 | // on phones; Brad 2026-11-27: all videos are off YouTube). Section video loops and the app |
| 3 | // installers still come from the pulsecanvas-media Cloudflare R2 bucket. |
| 4 | // R2 copies are cached for a year, so a new loop cut needs a new filename (see "Website videos" in README.md). |
| 5 | export const mediaBaseUrl = 'https://media.pulsecanvas.si'; |
| 6 | |
| 7 | export const filmBaseUrl = 'https://media.protomota.com/video'; |
| 8 | |
| 9 | export const films = { |
| 10 | // Song film: 2:54, refreshed with moving PulseCanvas 1.2 interface shots (2026-10-23). |
| 11 | song: { video: 'pulsecanvas-song', captions: true, poster: '/images/song-v4-poster.webp', duration: '2:54', |
| 12 | label: 'PulseCanvas, the music video: our song, made in PulseCanvas Studio' }, |
| 13 | // 34 s feature film. |
| 14 | short: { video: 'pulsecanvas-feature', captions: true, poster: '/images/feature-v6-poster.webp', duration: '0:34', |
| 15 | label: 'PulseCanvas Studio short film' }, |
| 16 | // Creators-edition tutorial (1:18). |
| 17 | walkthrough: { video: 'pulsecanvas-tutorial', captions: true, poster: '/images/tutorial-v6-poster.webp', duration: '1:18', |
| 18 | label: 'PulseCanvas Studio tutorial: make your first music video' }, |
| 19 | }; |
| 20 | |
| 21 | // A film's MP4: 720p on phones and data-saver connections, 1080p everywhere else. |
| 22 | // Captions sit beside the MP4s; the bucket's CORS allows our domains, so the video loads crossOrigin. |
| 23 | export const filmCaptionsUrl = (film) => `${filmBaseUrl}/${film.video}/captions.vtt`; |
| 24 | export const filmUrl = (film, size = '1080p') => `${filmBaseUrl}/${film.video}/${film.video}-${size}.mp4`; |