Skip to main content

InputFormat

Base class representing an input media file format.

Properties

string
Returns the name of the input format.
string
Returns the typical base MIME type of the input format.

Format classes

Mp4InputFormat

MPEG-4 Part 14 (MP4) file format.
Do not instantiate this class directly. Use the MP4 singleton instead.

Properties

string
Returns 'MP4'
string
Returns 'video/mp4'

QuickTimeInputFormat

QuickTime File Format (QTFF), often called MOV.
Do not instantiate this class directly. Use the QTFF singleton instead.

Properties

string
Returns 'QuickTime File Format'
string
Returns 'video/quicktime'

MatroskaInputFormat

Matroska file format.
Do not instantiate this class directly. Use the MATROSKA singleton instead.

Properties

string
Returns 'Matroska'
string
Returns 'video/x-matroska'

WebMInputFormat

WebM file format, based on Matroska.
Do not instantiate this class directly. Use the WEBM singleton instead.

Properties

string
Returns 'WebM'
string
Returns 'video/webm'

Mp3InputFormat

MP3 file format.
Do not instantiate this class directly. Use the MP3 singleton instead.

Properties

string
Returns 'MP3'
string
Returns 'audio/mpeg'

WaveInputFormat

WAVE file format, based on RIFF.
Do not instantiate this class directly. Use the WAVE singleton instead.

Properties

string
Returns 'WAVE'
string
Returns 'audio/wav'

OggInputFormat

Ogg file format.
Do not instantiate this class directly. Use the OGG singleton instead.

Properties

string
Returns 'Ogg'
string
Returns 'application/ogg'

FlacInputFormat

FLAC file format.
Do not instantiate this class directly. Use the FLAC singleton instead.

Properties

string
Returns 'FLAC'
string
Returns 'audio/flac'

AdtsInputFormat

ADTS file format.
Do not instantiate this class directly. Use the ADTS singleton instead.

Properties

string
Returns 'ADTS'
string
Returns 'audio/aac'

MpegTsInputFormat

MPEG Transport Stream (MPEG-TS) file format.
Do not instantiate this class directly. Use the MPEG_TS singleton instead.

Properties

string
Returns 'MPEG Transport Stream'
string
Returns 'video/MP2T'

Format singletons

MP4

MP4 input format singleton.

QTFF

QuickTime File Format input format singleton.

MATROSKA

Matroska input format singleton.

WEBM

WebM input format singleton.

MP3

MP3 input format singleton.

WAVE

WAVE input format singleton.

OGG

Ogg input format singleton.

ADTS

ADTS input format singleton.

FLAC

FLAC input format singleton.

MPEG_TS

MPEG-TS input format singleton.

ALL_FORMATS

List of all input format singletons. If you don’t need to support all input formats, you should specify the formats individually for better tree shaking.

Value

Example