Jotley / website · jotley.ai / src / app / components / home / media.ts
| 1 | /** |
| 2 | * Site video + screenshot manifest. The narrated films play from our Cloudflare R2 |
| 3 | * bucket at media.protomota.com/video/<slug>/ (1080p, and 720p for phones; the owner |
| 4 | * 2026-11-27: all videos are off YouTube); posters, captions and stills stay in /public/media. The short app |
| 5 | * clips still stream from the jotley-media Cloudflare R2 bucket (media.jotley.ai). |
| 6 | * NEXT_PUBLIC_VIDEO_BASE_URL points a local build at another host for previews. |
| 7 | */ |
| 8 | const VIDEOS = process.env.NEXT_PUBLIC_VIDEO_BASE_URL || 'https://media.jotley.ai'; |
| 9 | |
| 10 | const FILMS = 'https://media.protomota.com/video'; |
| 11 | |
| 12 | export type Film = { |
| 13 | poster: string; |
| 14 | /** R2 slug: media.protomota.com/video/<slug>/<slug>-1080p.mp4 and -720p.mp4. */ |
| 15 | video: string; |
| 16 | duration: number; |
| 17 | /** Same-origin WebVTT captions, when the film has them. */ |
| 18 | captions?: string; |
| 19 | }; |
| 20 | |
| 21 | export const MARKETING_FILM: Film = { |
| 22 | poster: '/media/films/what-is-jotley-v4-poster-bright.webp', |
| 23 | video: 'what-is-jotley-20261129', |
| 24 | duration: 147.412, // Six-chapter explainer, with the retired integration removed. |
| 25 | }; |
| 26 | |
| 27 | export const WALKTHROUGH_FILM: Film = { |
| 28 | poster: '/media/films/jotley-walkthrough-v3-poster.webp', |
| 29 | video: 'jotley-walkthrough', |
| 30 | duration: 179, // v3: Jotley 2.1 footage, current Mac app, Comfortaa type |
| 31 | }; |
| 32 | |
| 33 | /** Chapter start times (seconds) taken from the walkthrough's edit timing. */ |
| 34 | export const WALKTHROUGH_CHAPTERS = [ |
| 35 | { start: 0, title: 'One idea, start to finish' }, |
| 36 | { start: 9, title: 'Before you start' }, |
| 37 | { start: 28, title: 'Transcribe on Mac' }, |
| 38 | { start: 59, title: 'Review and summarize' }, |
| 39 | { start: 82, title: 'Transcribe on iPhone' }, |
| 40 | { start: 95, title: 'Summaries on iPhone' }, |
| 41 | { start: 107, title: 'Organize on iPad' }, |
| 42 | { start: 120, title: 'Search and export' }, |
| 43 | { start: 137, title: 'Privacy and iCloud sync' }, |
| 44 | { start: 162, title: 'Recap' }, |
| 45 | ]; |
| 46 | |
| 47 | export type Chapter = { start: number; title: string }; |
| 48 | |
| 49 | export type Tutorial = { |
| 50 | id: 'iphone' | 'ipad' | 'mac'; |
| 51 | title: string; |
| 52 | summary: string; |
| 53 | film: Film; |
| 54 | chapters: Chapter[]; |
| 55 | }; |
| 56 | |
| 57 | const tutorialFilm = (name: string, duration: number, video: string): Film => ({ |
| 58 | poster: `/media/films/${name}-poster.webp`, |
| 59 | video, |
| 60 | duration, |
| 61 | captions: `/media/films/${name}.vtt`, |
| 62 | }); |
| 63 | |
| 64 | /** Full narrated tutorials, one per device (chapter starts from each film's edit). */ |
| 65 | export const TUTORIALS: Tutorial[] = [ |
| 66 | { |
| 67 | id: 'iphone', |
| 68 | title: 'Jotley on iPhone', |
| 69 | summary: 'Capture a spoken idea, summarize it, ask it a question, then tag, find and share it.', |
| 70 | film: tutorialFilm('jotley-tutorial-iphone-v4', 84.333, 'jotley-iphone'), // v4: current 2.2 UI and real wired live transcription |
| 71 | chapters: [ |
| 72 | { start: 0, title: 'One idea, one clear note' }, |
| 73 | { start: 5.8, title: 'Capture' }, |
| 74 | { start: 20.6, title: 'Summarize' }, |
| 75 | { start: 32.1, title: 'Ask your note' }, |
| 76 | { start: 42.7, title: 'Organize with tags' }, |
| 77 | { start: 50.3, title: 'Find and share' }, |
| 78 | { start: 61.7, title: 'Private on your iPhone' }, |
| 79 | ], |
| 80 | }, |
| 81 | { |
| 82 | id: 'ipad', |
| 83 | title: 'Jotley on iPad', |
| 84 | summary: 'The same flow on the bigger screen, with your library beside every note.', |
| 85 | film: tutorialFilm('jotley-tutorial-ipad-v5', 71.528, 'jotley-ipad'), // v5: current 2.2 UI and real wired live transcription |
| 86 | chapters: [ |
| 87 | { start: 0, title: 'One idea, one clear note' }, |
| 88 | { start: 5.6, title: 'Capture' }, |
| 89 | { start: 14.0, title: 'Summarize' }, |
| 90 | { start: 24.0, title: 'Ask your note' }, |
| 91 | { start: 35.8, title: 'Your library, side by side' }, |
| 92 | { start: 49.5, title: 'Private on your iPad' }, |
| 93 | ], |
| 94 | }, |
| 95 | { |
| 96 | id: 'mac', |
| 97 | title: 'Jotley for Mac', |
| 98 | summary: 'The menu bar, the floating widget, calls and videos, summaries, search, export and settings.', |
| 99 | film: tutorialFilm('jotley-tutorial-mac-v4', 120.182, 'jotley-mac'), // v4: current 2.2 UI, native menu and floating widget |
| 100 | chapters: [ |
| 101 | { start: 0, title: 'Your words, on your Mac' }, |
| 102 | { start: 6.4, title: 'Start from the menu bar' }, |
| 103 | { start: 12.5, title: 'The desktop widget' }, |
| 104 | { start: 21.8, title: 'Calls and videos' }, |
| 105 | { start: 32.0, title: 'In the app' }, |
| 106 | { start: 49.6, title: 'Keep working' }, |
| 107 | { start: 59.2, title: 'Summarize' }, |
| 108 | { start: 75.2, title: 'Find any idea' }, |
| 109 | { start: 88.2, title: 'Export' }, |
| 110 | { start: 96.8, title: 'Settings' }, |
| 111 | ], |
| 112 | }, |
| 113 | ]; |
| 114 | |
| 115 | /** Real screen captures from the app, sized for device screens. */ |
| 116 | export const CLIPS = { |
| 117 | iphoneLive: `${VIDEOS}/clips/iphone-live-stream-2.3-20261113.mp4`, |
| 118 | iphoneExport: `${VIDEOS}/clips/iphone-export-2.3-20261113.mp4`, |
| 119 | macLive: { video: `${VIDEOS}/clips/mac-live-2.3-20261113.mp4`, poster: '/media/shots/mac-live-2.3.webp' }, |
| 120 | }; |
| 121 | |
| 122 | export const SHOTS = { |
| 123 | iphoneLive: '/media/shots/iphone-live-2.3.webp', |
| 124 | iphoneSummary: '/media/shots/iphone-summary-2.3.webp', |
| 125 | iphoneSearch: '/media/shots/iphone-search-2.3.webp', |
| 126 | iphoneExport: '/media/shots/iphone-export-2.3.webp', |
| 127 | macSummary: '/media/shots/mac-summary-2.3.webp', |
| 128 | ipadOrganized: '/media/shots/ipad-organized-2.3.webp', |
| 129 | }; |
| 130 | |
| 131 | /** The film's MP4: 720p on phones and data-saver connections, 1080p everywhere else. */ |
| 132 | export function filmSrc(film: Film): string { |
| 133 | const small = |
| 134 | typeof window !== 'undefined' && |
| 135 | (window.matchMedia('(max-width: 820px)').matches || |
| 136 | (navigator as Navigator & { connection?: { saveData?: boolean } }).connection?.saveData); |
| 137 | return `${FILMS}/${film.video}/${film.video}-${small ? '720p' : '1080p'}.mp4`; |
| 138 | } |
| 139 | |
| 140 | export function formatTime(seconds: number): string { |
| 141 | const whole = Math.max(0, Math.floor(seconds)); |
| 142 | return `${Math.floor(whole / 60)}:${String(whole % 60).padStart(2, '0')}`; |
| 143 | } |