Skip to main content

Video API · experimental

Bring browser video into the loading pipeline.

VideoLoader creates the browser-side video representation expected by the experimental video module. It handles loading; playback, controls, and rendering remain application concerns.

The browser media boundary

Load the resource. Own the playback experience.

The loader is deliberately narrow and browser-only. It gives an application a familiar loaders.gl entry point without hiding the platform’s media lifecycle or pretending to support Node.js.

Input

A browser-supported video URL or resource

Output

A browser video element representation

Runtime

Browser APIs only; no Node.js implementation

Status

Experimental and subject to change

Detailed guide

VideoLoader reference

The sections below document the loader metadata, installation, usage, and current browser limitations.

From-v2.2

The VideoLoader is experimental.

A basic Video element loader. Only works in the browser.

VideoLoader
File Extension.mp4
File TypeBinary
File FormatImage
Data FormatVideo (browsers) (Not currently supported on node.js)
Supported APIsload, parse

Usage​

import '@loaders.gl/core/polyfills'; // only needed if using under Node
import {VideoLoader} from '@loaders.gl/images/video';
import {load} from '@loaders.gl/core';

const image = await load(url, VideoLoader, options);

Options​

OptionTypeDefaultDescription