Skip to content
Abstract class

InputFormat ​

Base class representing an input media file format.

Subclasses ​

Used by ​

Properties ​

mimeType ​

ts
get mimeType(): string;

Returns the typical base MIME type of the input format.

name ​

ts
get name(): string;

Returns the name of the input format.

supportsTimestampedMediaData ​

ts
get supportsTimestampedMediaData(): boolean;

Whether this input format's tracks store timestamped media data. When true, the timestamps of read packets come from the file, allowing things like gaps in media data or non-zero start times. When false, the format's media data implicitly starts at zero and follows an implicit sequential timing from there, using the intrinsic durations of the media data.

Released under the Mozilla Public License 2.0.