Building a Video Player for iOS from Scratch
summary
A practical guide to building an iOS video player from scratch that replaces AVPlayer for cases needing prefetch, custom formats, and fine-grained load control. Covers a simple player architecture, MP4 container parsing to extract tracks and build CMFormatDescription, decoding samples with Apple media frameworks, A/V sync for rendering and audio, seeking and latency handling, and optimizations enabled by full control over playback.
AI-written summary · about
chapters (19)
- 0:00Introduction
- 1:25Why write a player
- 8:14Player structure
- 10:47Video loading
- 11:48MP4 format
- 14:17Container parsing
- 16:45Core Media for player
- 18:29Video decoding
- 21:20Video Toolbox
- 27:40Frame display
- 28:02Audio decoding
- 31:11Audio Converter
- 35:49Audio playback
- 37:15Audio Queue Services
- 40:45Player architecture
- 41:29ExoPlayer example
- 47:44SE player implementation
- 50:39Self-built player benefits
- 51:41When to write a player
related talks
01h 12mHow Apple TV Development Differs from iOS Development
32mThe Story of an App and a Hidden Gem of iOS
01h 12mMake your app talk
49mAdvanced live streaming
42mAVAudioEngine: when the interlocutor st-st-stutters
53mSharePlay and Other Ways to Connect iOS Users to Each Other
31mMobile Library Development
53mSwift: New Paradigms for iOS Development
