/** * Site video + screenshot manifest. The narrated films play from our Cloudflare R2 * bucket at media.protomota.com/video// (1080p, and 720p for phones; the owner * 2026-11-27: all videos are off YouTube); posters, captions and stills stay in /public/media. The short app * clips still stream from the jotley-media Cloudflare R2 bucket (media.jotley.ai). * NEXT_PUBLIC_VIDEO_BASE_URL points a local build at another host for previews. */ const VIDEOS = process.env.NEXT_PUBLIC_VIDEO_BASE_URL || 'https://media.jotley.ai'; const FILMS = 'https://media.protomota.com/video'; export type Film = { poster: string; /** R2 slug: media.protomota.com/video//-1080p.mp4 and -720p.mp4. */ video: string; duration: number; /** Same-origin WebVTT captions, when the film has them. */ captions?: string; }; export const MARKETING_FILM: Film = { poster: '/media/films/what-is-jotley-v4-poster-bright.webp', video: 'what-is-jotley-20261129', duration: 147.412, // Six-chapter explainer, with the retired integration removed. }; export const WALKTHROUGH_FILM: Film = { poster: '/media/films/jotley-walkthrough-v3-poster.webp', video: 'jotley-walkthrough', duration: 179, // v3: Jotley 2.1 footage, current Mac app, Comfortaa type }; /** Chapter start times (seconds) taken from the walkthrough's edit timing. */ export const WALKTHROUGH_CHAPTERS = [ { start: 0, title: 'One idea, start to finish' }, { start: 9, title: 'Before you start' }, { start: 28, title: 'Transcribe on Mac' }, { start: 59, title: 'Review and summarize' }, { start: 82, title: 'Transcribe on iPhone' }, { start: 95, title: 'Summaries on iPhone' }, { start: 107, title: 'Organize on iPad' }, { start: 120, title: 'Search and export' }, { start: 137, title: 'Privacy and iCloud sync' }, { start: 162, title: 'Recap' }, ]; export type Chapter = { start: number; title: string }; export type Tutorial = { id: 'iphone' | 'ipad' | 'mac'; title: string; summary: string; film: Film; chapters: Chapter[]; }; const tutorialFilm = (name: string, duration: number, video: string): Film => ({ poster: `/media/films/${name}-poster.webp`, video, duration, captions: `/media/films/${name}.vtt`, }); /** Full narrated tutorials, one per device (chapter starts from each film's edit). */ export const TUTORIALS: Tutorial[] = [ { id: 'iphone', title: 'Jotley on iPhone', summary: 'Capture a spoken idea, summarize it, ask it a question, then tag, find and share it.', film: tutorialFilm('jotley-tutorial-iphone-v4', 84.333, 'jotley-iphone'), // v4: current 2.2 UI and real wired live transcription chapters: [ { start: 0, title: 'One idea, one clear note' }, { start: 5.8, title: 'Capture' }, { start: 20.6, title: 'Summarize' }, { start: 32.1, title: 'Ask your note' }, { start: 42.7, title: 'Organize with tags' }, { start: 50.3, title: 'Find and share' }, { start: 61.7, title: 'Private on your iPhone' }, ], }, { id: 'ipad', title: 'Jotley on iPad', summary: 'The same flow on the bigger screen, with your library beside every note.', film: tutorialFilm('jotley-tutorial-ipad-v5', 71.528, 'jotley-ipad'), // v5: current 2.2 UI and real wired live transcription chapters: [ { start: 0, title: 'One idea, one clear note' }, { start: 5.6, title: 'Capture' }, { start: 14.0, title: 'Summarize' }, { start: 24.0, title: 'Ask your note' }, { start: 35.8, title: 'Your library, side by side' }, { start: 49.5, title: 'Private on your iPad' }, ], }, { id: 'mac', title: 'Jotley for Mac', summary: 'The menu bar, the floating widget, calls and videos, summaries, search, export and settings.', film: tutorialFilm('jotley-tutorial-mac-v4', 120.182, 'jotley-mac'), // v4: current 2.2 UI, native menu and floating widget chapters: [ { start: 0, title: 'Your words, on your Mac' }, { start: 6.4, title: 'Start from the menu bar' }, { start: 12.5, title: 'The desktop widget' }, { start: 21.8, title: 'Calls and videos' }, { start: 32.0, title: 'In the app' }, { start: 49.6, title: 'Keep working' }, { start: 59.2, title: 'Summarize' }, { start: 75.2, title: 'Find any idea' }, { start: 88.2, title: 'Export' }, { start: 96.8, title: 'Settings' }, ], }, ]; /** Real screen captures from the app, sized for device screens. */ export const CLIPS = { iphoneLive: `${VIDEOS}/clips/iphone-live-stream-2.3-20261113.mp4`, iphoneExport: `${VIDEOS}/clips/iphone-export-2.3-20261113.mp4`, macLive: { video: `${VIDEOS}/clips/mac-live-2.3-20261113.mp4`, poster: '/media/shots/mac-live-2.3.webp' }, }; export const SHOTS = { iphoneLive: '/media/shots/iphone-live-2.3.webp', iphoneSummary: '/media/shots/iphone-summary-2.3.webp', iphoneSearch: '/media/shots/iphone-search-2.3.webp', iphoneExport: '/media/shots/iphone-export-2.3.webp', macSummary: '/media/shots/mac-summary-2.3.webp', ipadOrganized: '/media/shots/ipad-organized-2.3.webp', }; /** The film's MP4: 720p on phones and data-saver connections, 1080p everywhere else. */ export function filmSrc(film: Film): string { const small = typeof window !== 'undefined' && (window.matchMedia('(max-width: 820px)').matches || (navigator as Navigator & { connection?: { saveData?: boolean } }).connection?.saveData); return `${FILMS}/${film.video}/${film.video}-${small ? '720p' : '1080p'}.mp4`; } export function formatTime(seconds: number): string { const whole = Math.max(0, Math.floor(seconds)); return `${Math.floor(whole / 60)}:${String(whole % 60).padStart(2, '0')}`; }