MediaSource JavaScript API extends the HTMLMediaElement to allow JavaScript to generate media streams for playback.