Problem
Design the frontend of a video streaming service like Netflix or YouTube: a browse page of personalized rows of titles, title pages, and a video player that starts quickly, adapts its quality to the network, and resumes where you stopped on any device.
Interviewers use it to test how you split a product into a data-heavy browse experience and a real-time playback system, how adaptive streaming works from the browser's side, how you handle protected content, errors and failover, and how you keep "continue watching" right across devices.
Functional requirements
- Browse and discover: a home page of personalized rows, title details, and public title pages that rank in search.
- Watch: a player with automatic quality, captions and audio tracks, seeking with thumbnails, picture-in-picture and next-episode autoplay.
- Continue watching: resume at the right point on any device, with progress shown on title cards.
Constraints
- Desktop and mobile browsers, plus TV apps driven by a remote's arrow keys.
- On-demand videos from 20 minutes to 3 hours, up to 4K, with DRM for licensed titles.
- The first frame appears within 2 seconds of pressing Play, and stalls take under 0.5% of watch time.
- Millions of people may press Play at the same moment on a big release night.
- Accessible to WCAG 2.2 AA: keyboard, screen reader, remote control, captions and audio description.
Discussion areas
- Core entities and key actions: what profiles, rows, titles, videos, playback information and progress are, and which user actions shape the design.
- Architecture and rendering: which pages should render on the server and which on the client, how the player fits in, and the layers between UI components and the server.
- Browse performance: rows and carousels with thousands of titles, artwork, and hover or focus previews.
- Playback: how a browser plays adaptive video, how quality is chosen, and how much to buffer.
- Player state: representing playing, buffering, seeking and errors so the UI is always right.
- Protected content: how DRM works in a browser, and which license failures to retry.
- API: what the player needs to start, and how progress is saved.
- Resume across devices: saving the position, and deciding which device's position wins.
- Errors, failover and scale: failed segments, struggling CDNs, and release-night traffic.
- Accessibility: keyboard and remote control, captions, audio description and moving previews.
Follow-up questions interviewers ask
- Why not a plain video file?
- HLS or DASH?
- How does the player decide quality?
- How big should the buffer be?
- How does DRM work in a browser?
- Which device wins when resuming?
- How do you make the next episode start instantly?
- What if a CDN starts failing?