Chevron DownAPI Reference

VideoLoader

From-v2.2

The VideoLoader is experimental.

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

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

Usage

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

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

Options

OptionTypeDefaultDescription