--- url: "https://web.dev/articles/media-mse-basics" titulek: "Media Source Extensions | Articles | web.dev" h1: "Media Source Extensions Stay organized with collections Save and categorize content based on your preferences." popis: "Media Source Extensions (MSE) is a JavaScript API that lets you build streams for playback from segments of audio or video." jazyk: "en" kanonicka: "https://web.dev/articles/media-mse-basics" drobecky: ["Articles", "Media Source Extensions"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 00:04:59" znaku: 13182 slov: 1814 kodovani: "iso-8859-2" sha256: "cee59e040fd00c231ef8f8193e319dd68d7b5a56e8ac4f1f69c6b4c5f07b99f4" --- Media Source Extensions Stay organized with collections Save and categorize content based on your preferences. François Beaufort Joe Medley [Media Source Extensions (MSE)](https://www.w3.org/TR/media-source/) is a JavaScript API that lets you build streams for playback from segments of audio or video. Although not covered in this article, understanding MSE is needed if you want to embed videos in your site that do things like: Adaptive streaming, which is another way of saying adapting to device capabilities and network conditions Adaptive splicing, such as ad insertion Time shifting Control of performance and download size **Figure 1**: Basic MSE data flow You can almost think of MSE as a chain. As illustrated in the figure, between the downloaded file and the media elements are several layers. An `