Video Marketplace
Short-Video Feed on iPhone and Android
The product is under NDA, so here is what it does. Sellers post what they offer as short vertical videos, and buyers scroll a full-screen feed, search the map and follow the people they like. A feed like that is judged at the swipe. We built it so the next video is already loading before the thumb moves. Every upload is compressed and sent for an explicit-content check before it goes live. The slow parts happen afterwards. After we reworked the feed, videos started loading several times faster.
Our roleMobile lead · Video feed · Under NDA
The story
When someone swipes, the next video has to be playing the moment it lands on screen, on iPhone and on Android. Behind the feed, every upload has to be checked and turned into something a phone can start quickly. The seller shouldn't have to wait for every version to be ready.
Two halves built to work together. On the phone, the feed keeps three screens built at once, so the next video loads while the current one plays. A cached preview image sits under every video until its first frame. On the server, every upload is compressed into one main video and sent for an explicit-content check. A preview image, a five-second clip, an animated grid preview and a watermarked copy are built at the same time. A CDN serves every file from close to the viewer. A streaming version that adjusts quality to the connection is built after the video is already live.
Video loading became several times faster after the rework, and the feed plays from one video to the next without waiting. Flagged uploads never reach the feed. The slower streaming versions never hold a seller's video back.
What we built
The app and the systems behind it, built to keep the feed fast.
Mobile App
Flutter · iOS & Android · 784 files · 131K LOC · 70 screens · full-screen feed, map search, in-app video editor
Backend
Firebase Cloud Functions · Node.js · 46 modules · 14.5K LOC · 120+ server operations · feed served from an in-memory cache
Video Pipeline
ffmpeg · managed cloud transcoder · compression, previews, moderation · HLS in 3 qualities · CDN delivery
Engineering challenges
The hardest problems we solved, and how.
🎞️The Next Video Has to Be Ready Before the Swipe
A feed that starts loading a video only when it lands on screen shows a spinner on every swipe. Early on, the videos next to the one on screen also started playing as soon as they loaded, and the feed froze.
The feed keeps the previous, current and next screens built at once. The neighbours load muted and paused while only the video on screen plays. A cached preview image sits under each one until its first frame. Players outside that three-screen window are released straight away.
Video loading became several times faster and the freezes stopped.
⏳A Seller Shouldn't Wait for the Slow Parts
Building every streaming version of a video is a separate job. If publishing waited for all of them, every upload would sit invisible until the slowest job finished.
A video goes live once its main file, previews and moderation check are done, all built in parallel. A streaming version in three qualities follows afterwards. If the cloud service that builds it fails, the server builds the stream with its own tools.
Uploads reach the feed as soon as the essentials are ready. A failed streaming build never strands a video.
🛡️Every Upload Is Screened Before It Goes Live
An app full of videos from strangers needs a way to keep explicit content out. App Store review looks for one. A half-processed video in the feed looks broken.
Every upload is sent for an automated explicit-content check before it can be published. Flagged videos get an error status, and the feed only ever shows videos whose processing has finished.
Flagged uploads never appear in the feed. Videos that are still being prepared stay out of it too.
Feature highlights
Full-Screen Feed
Vertical swipe, tap to mute, hold to pause, follow a seller without leaving the video
Preloaded Neighbours
Previous and next videos load in the background, muted and paused
Cached Previews
A preview image under every video until the first frame, kept on the device
Cached Feed
Product data cached, each user's feed request kept for five minutes, watched videos tracked
Map Search
Find videos by area on the map, with location filters
Explicit Content Check
Every upload sent for an automated check before it can be published
Share Copy
A watermarked version of every video for sharing outside the app
Real View Counts
A view counts only once the video starts playing