VOD streaming powered by Theta's decentralized edge network
Official Swift Swap promo video. Animated intro with brand identity, tagline, and Theta EdgeCloud branding. Created with ffmpeg, uploaded via EdgeCloud Video API, transcoded and served by decentralized edge nodes.
© 2008 Blender Foundation / peach.blender.org · CC BY 3.0 · Complete 9:56 cut with credits roll intact · Free to share, credit given.
100% original content · 28s · Vertical 9:16 · Made by Rex for our smart home tech brand. Streaming from Swift Swap infrastructure.
Test video uploaded via second EdgeCloud service account. Validates multi-account VOD pipeline and edge node delivery across Theta's decentralized infrastructure.
Every video on this page is uploaded, encoded, and delivered through Theta's decentralized infrastructure. No centralized CDN. No AWS. Pure edge.
Upload via POST to api.thetavideoapi.com. Theta edge nodes handle transcoding to HLS adaptive bitrate.
POST /video → upload_url
POST upload_url → video file
GET /video/{id} → playback_uri
Videos are encoded to HLS (.m3u8 + .ts segments) and served from edge nodes. hls.js handles playback in browser.
hls.loadSource(m3u8_url)
hls.attachMedia(video)
Theta's JavaScript SDK enables peer-to-peer video delivery — viewers relay segments to each other, reducing server load.
theta = new Theta(video)
theta.config{peers:3}
Each video is tied to a service account (srvacc_xxx). Auth via x-tva-sa-id and x-tva-sa-secret headers.
x-tva-sa-id: srvacc_xxx
x-tva-sa-secret: xxx
Thousands of community-run edge nodes cache and serve video segments. Closest node wins — lower latency, lower cost.
media.thetavideoapi.com
/org_xxx/srvacc_xxx/video_xxx/master.m3u8
Video encoding and delivery is paid in TFUEL. Edge node operators earn TFUEL for serving content. Decentralized economics.
upload cost: ~0.1 TFUEL
transcode: ~0.05 TFUEL
delivery: per GB served
Want your Theta-related video featured here? The upload pipeline is simple:
Swift Swap backend requests an upload URL from EdgeCloud Video API
POST https://api.thetavideoapi.com/video
POST the raw video file to the returned upload URL
POST {upload_url} → video file bytes
Theta edge nodes automatically transcode to HLS adaptive bitrate (360p, 720p, 1080p)
status: processing → ready
Poll the video status. Once ready, you get an HLS playback URI served by edge nodes
GET /video/{id} → playback_uri (m3u8)
Add the HLS URL to any video player with hls.js. Viewers get P2P delivery automatically.
hls.loadSource(playback_uri)
The actual code powering videos on this site. Open source, MIT licensed.
// 1. Upload a video to EdgeCloud const uploadRes = await fetch('https://api.thetavideoapi.com/video', { method: 'POST', headers: { 'x-tva-sa-id': SA_ID, 'x-tva-sa-secret': SA_SECRET, 'Content-Type': 'application/json' }, body: JSON.stringify({ name: 'Swift Swap Intro' }) }); const { body: { upload_uri, id } } = await uploadRes.json(); // 2. Upload the raw video file await fetch(upload_uri, { method: 'POST', body: videoFile }); // 3. Poll for completion const check = await fetch(`https://api.thetavideoapi.com/video/${id}`, { headers: { 'x-tva-sa-id': SA_ID, 'x-tva-sa-secret': SA_SECRET } }); const { body: { status, playback_uri } } = await check.json(); // 4. Play with hls.js const hls = new Hls({ enableWorker: true }); hls.loadSource(playback_uri); hls.attachMedia(videoElement);