MediaSource
MediaSource is a browser API implemented as part of the Media Source Extensions (MSE) specification. It enables dynamic, JavaScript-controlled streaming of media data by feeding segments to a media element. It is designed to support adaptive streaming protocols such as MPEG-DASH and HLS by constructing media streams in the browser.
In practice, a script creates a MediaSource object, attaches it to a video or audio element using
Supported formats and browser compatibility: MSE works with fragmented MP4 and WebM containers, with codecs selection
It is distinct from standard video playback and is intended for programmatic control of buffering. The MediaSource