MS Development
All case studies
Case Study

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

PreviousOn screenNextLoading…ReadyThe phoneUploadMain videoPreview image5-second clipGrid previewShare copyExplicit checkPassedIn the feedAdaptive streaming · 3 qualitiesThe serverCDN delivers every version to the phone
The next video loads before the swipe. Every upload is screened before it goes live.
3 screens
Built at once, so the next video is loading before the swipe
8 versions
Made from every upload: 5 files and 3 streaming qualities
100%
Of uploads sent for an explicit-content check before publishing
1 app
For iPhone and Android, so every update reaches both at once
01

The story

Problem

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.

Solution

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.

Impact

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.

02

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

03

Engineering challenges

The hardest problems we solved, and how.

🎞️The Next Video Has to Be Ready Before the Swipe

Problem

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.

Solution

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.

Result

Video loading became several times faster and the freezes stopped.

⏳A Seller Shouldn't Wait for the Slow Parts

Problem

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.

Solution

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.

Result

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

Problem

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.

Solution

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.

Result

Flagged uploads never appear in the feed. Videos that are still being prepared stay out of it too.

04

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

05

Tech stack

Client
FlutterDartiOSAndroid
Backend
Firebase Cloud FunctionsNode.jsFirestoreRedisCloud Storage
Video & Integrations
ffmpegHLSCloud TranscoderVideo IntelligenceCDNGoogle MapsAmplitudeCrashlytics
Project Under NDA · Details Anonymized

Building a feed, a marketplace, or both?

Talk to the engineer who led this feed.

Free written answer within 24 hours: what to build first and what can wait. NDA by default.

Product names and client information have been removed to comply with non-disclosure agreements.