I build Vidkap, a video downloader app for Android and a video downloader extension for Chrome. Both do the same job: find the videos a web page actually loads and save them as a normal file you can keep.
A plain MP4 link is easy. Most video on the web isn't one, though. It's HLS or DASH: a playlist that points at hundreds of small segments, sometimes encrypted, sometimes with audio and video as separate streams. To give the user one playable file, you have to download all of it and put it back together.
The usual Flutter answer is to bundle ffmpeg. I didn't, for three reasons:
It adds tens of megabytes to the app.
FFmpegKit, the common Flutter wrapper, was retired in 2025.
I wanted full control over progress, cancellation and resuming.
The Chrome extension already had a JavaScript engine for this, so I ported it to Dart. It's now about 13,000 lines and goes from playlist to playable MP4 without any native media library.β¦