Hacker News new | ask | show | jobs
by jakub_g 1601 days ago
This; "adaptive streaming" is the keyword. A video on the web is actually a series of mp4 files which are a few seconds length each. They are generally assembled at runtime via JavaScript or native technology into continuous playback. The browser/app monitors whether chunks are downloaded fast enough to assure continuous playback. That's also why often streams start in low quality (to minimize buffering time) and once the app knows it can go to higher resolution, it switches at the next boundary between the chunks.