Search in sources :

Example 1 with DummyTrackOutput

use of com.google.android.exoplayer2.extractor.DummyTrackOutput in project ExoPlayer by google.

the class AdtsReader method createTracks.

@Override
public void createTracks(ExtractorOutput extractorOutput, TrackIdGenerator idGenerator) {
    idGenerator.generateNewId();
    formatId = idGenerator.getFormatId();
    output = extractorOutput.track(idGenerator.getTrackId(), C.TRACK_TYPE_AUDIO);
    if (exposeId3) {
        idGenerator.generateNewId();
        id3Output = extractorOutput.track(idGenerator.getTrackId(), C.TRACK_TYPE_METADATA);
        id3Output.format(Format.createSampleFormat(idGenerator.getFormatId(), MimeTypes.APPLICATION_ID3, null, Format.NO_VALUE, null));
    } else {
        id3Output = new DummyTrackOutput();
    }
}
Also used : DummyTrackOutput(com.google.android.exoplayer2.extractor.DummyTrackOutput)

Aggregations

DummyTrackOutput (com.google.android.exoplayer2.extractor.DummyTrackOutput)1