/**
* rTube demo page — server-rendered HTML body.
*
* Embeds the full component for
* real interactivity (video library, search, playback, live streaming)
* plus showcase sections explaining the rTube vision.
*/
const FEATURES = [
{
icon: "\u{1F3AC}",
title: "Video Library",
desc: "Browse, search, and play videos from your community's R2-backed storage. Supports MP4, WebM, MOV, and more.",
},
{
icon: "\u{1F4E1}",
title: "Live Streaming",
desc: "Broadcast live via RTMP from OBS Studio or any streaming software. Viewers watch in real-time with HLS playback.",
},
{
icon: "\u{1F4E4}",
title: "Easy Uploads",
desc: "Authenticated members upload videos directly. Files stream to Cloudflare R2 with automatic format detection.",
},
{
icon: "\u{1F517}",
title: "Direct Links",
desc: "Copy shareable links to any video. HTTP range requests enable efficient streaming and seeking.",
},
];
const INTEGRATIONS = [
{ icon: "\u{1F4DD}", name: "rNotes", desc: "Attach meeting notes, transcripts, and timestamps to video recordings." },
{ icon: "\u{1F4C5}", name: "rCal", desc: "Scheduled recordings and live streams appear on the community calendar." },
{ icon: "\u{1F465}", name: "rNetwork", desc: "Share videos across your network. Collaborative viewing and commenting." },
{ icon: "\u{1F4DA}", name: "rBooks", desc: "Embed video content in publications and educational materials." },
{ icon: "\u{1F5FA}", name: "rMaps", desc: "Geotagged videos appear on the map at their recording location." },
{ icon: "\u2615\uFE0F", name: "rSpace", desc: "Each space has its own video library. Pin videos to the collaborative canvas." },
];
export function renderDemo(): string {
return `
Community Video Hosting
rTube Demo
Video library, live streaming, and uploads powered by Cloudflare R2
\u{1F3AC} Video Library|\u{1F4E1} Live Streaming|\u{1F4E4} Uploads|\u{1F517} Direct Links
${FEATURES.map(
(f) => `
${f.icon}
${f.title}
${f.desc}
`,
).join("")}
r* Ecosystem Integrations
${INTEGRATIONS.map(
(i) => `
${i.icon}
${i.name}
${i.desc}
`,
).join("")}
Host Your Video Library
rTube gives your community private video hosting with streaming,
uploads, and live broadcasting — all powered by Cloudflare R2.