Back to Exoplayer

Supported Formats Progressive

docs/_page_fragments/supported-formats-progressive.md

latest2.2 KB
Original Source

Streams in the following container formats can be played directly by ExoPlayer. The contained audio and video sample formats must also be supported (see the sample formats section for details).

Container formatSupportedComments
MP4YES
M4AYES
FMP4YES
WebMYES
MatroskaYES
MP3YESSome streams only seekable using constant bitrate seeking**
OggYESContaining Vorbis, Opus and FLAC
WAVYES
MPEG-TSYES
MPEG-PSYES
FLVYESNot seekable*
ADTS (AAC)YESOnly seekable using constant bitrate seeking**
FLACYESUsing the [FLAC extension][] or the FLAC extractor in the [core library][]***
AMRYESOnly seekable using constant bitrate seeking**
JPEG motion photoYESOnly the MP4 content is extracted

* Seeking is unsupported because the container does not provide metadata (e.g., a sample index) to allow a media player to perform a seek in an efficient way. If seeking is required, we suggest using a more appropriate container format.

** These extractors have FLAG_ENABLE_CONSTANT_BITRATE_SEEKING flags for enabling approximate seeking using a constant bitrate assumption. This functionality is not enabled by default. The simplest way to enable this functionality for all extractors that support it is to use DefaultExtractorsFactory.setConstantBitrateSeekingEnabled, as described here.

*** The [FLAC extension][] extractor outputs raw audio, which can be handled by the framework on all API levels. The [core library][] FLAC extractor outputs FLAC audio frames and so relies on having a FLAC decoder (e.g., a MediaCodec decoder that handles FLAC (required from API level 27), or the [FFmpeg extension][] with FLAC enabled). The DefaultExtractorsFactory uses the extension extractor if the application was built with the [FLAC extension][]. Otherwise, it uses the [core library][] extractor.

[FLAC extension]: {{ site.release_v2 }}/extensions/flac [core library]: {{ site.release_v2 }}/library/core [FFmpeg extension]: {{ site.release_v2 }}/extensions/ffmpeg