Skip to main content

HLS supportv4.0.454

<Video> from @remotion/media supports HLS / .m3u8 files natively via Mediabunny.

Pass an .m3u8 URL as the src prop:

import {Video} from '@remotion/media';

export const HlsExample = () => {
  return (
    <>
      <Video src="https://stream.mux.com/nqGuji1CJuoPoU3iprRRhiy3HXiQN0201HLyliOg44HOU.m3u8" />
    </>
  );
};

This works across all browsers and during rendering. When a master playlist with multiple quality variants is used, Remotion will automatically select the highest-quality video track and its accompanying audio.

Track selection​

Remotion does not support selecting a track yet.
The highest-quality video track and its accompanying audio are selected automatically.

Live streams​

Only VOD (Video on Demand) HLS playlists are supported.
Live HLS streams are rejected.
See: Can Remotion be used for live streaming?.

See also​