Class DummyTrackOutput

  • All Implemented Interfaces:
    TrackOutput

    @Deprecated
    public final class DummyTrackOutput
    extends Object
    implements TrackOutput
    Deprecated.
    com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
    A fake TrackOutput implementation.
    • Constructor Detail

      • DummyTrackOutput

        public DummyTrackOutput()
        Deprecated.
    • Method Detail

      • format

        public void format​(Format format)
        Deprecated.
        Description copied from interface: TrackOutput
        Called when the Format of the track has been extracted from the stream.
        Specified by:
        format in interface TrackOutput
        Parameters:
        format - The extracted Format.
      • sampleData

        public int sampleData​(DataReader input,
                              int length,
                              boolean allowEndOfInput,
                              @com.google.android.exoplayer2.extractor.TrackOutput.SampleDataPart int sampleDataPart)
                       throws IOException
        Deprecated.
        Description copied from interface: TrackOutput
        Called to write sample data to the output.
        Specified by:
        sampleData in interface TrackOutput
        Parameters:
        input - A DataReader from which to read the sample data.
        length - The maximum length to read from the input.
        allowEndOfInput - True if encountering the end of the input having read no data is allowed, and should result in C.RESULT_END_OF_INPUT being returned. False if it should be considered an error, causing an EOFException to be thrown.
        sampleDataPart - The part of the sample data to which this call corresponds.
        Returns:
        The number of bytes appended.
        Throws:
        IOException - If an error occurred reading from the input.
      • sampleData

        public void sampleData​(ParsableByteArray data,
                               int length,
                               @com.google.android.exoplayer2.extractor.TrackOutput.SampleDataPart int sampleDataPart)
        Deprecated.
        Description copied from interface: TrackOutput
        Called to write sample data to the output.
        Specified by:
        sampleData in interface TrackOutput
        Parameters:
        data - A ParsableByteArray from which to read the sample data.
        length - The number of bytes to read, starting from data.getPosition().
        sampleDataPart - The part of the sample data to which this call corresponds.