Class ProgressiveMediaSource

  • All Implemented Interfaces:
    MediaSource

    public final class ProgressiveMediaSource
    extends BaseMediaSource
    Provides one period that loads data from a Uri and extracted using an Extractor.

    If the possible input stream container formats are known, pass a factory that instantiates extractors for them to the constructor. Otherwise, pass a DefaultExtractorsFactory to use the default extractors. When reading a new stream, the first Extractor in the array of extractors created by the factory that returns true from Extractor.sniff(com.google.android.exoplayer2.extractor.ExtractorInput) will be used to extract samples from the input stream.

    Note that the built-in extractor for FLV streams does not support seeking.