webReader
warning
Unstable API: This package is experimental. The API may change in the future.
The API for getting video metadata is stable and may be used in production.
A reader for @remotion/media-parser
that reads either from a URL or from a File
.
It is the default reader, and therefore does not have to be specified.
Example
Reading from any sourcetsx
import {parseMedia } from '@remotion/media-parser';import {webReader } from '@remotion/media-parser/web';constresult = awaitparseMedia ({// Or a `File`src : 'https://example.com/my-video.mp4',fields : {durationInSeconds : true,dimensions : true,},reader :webReader ,});