public interface

TsPayloadReader.Factory

 androidx.media3.extractor.ts.TsPayloadReader.Factory

Subclasses:

DefaultTsPayloadReaderFactory

Overview

Factory of TsPayloadReader instances.

Summary

Methods
public <any>createInitialPayloadReaders()

Returns the initial mapping from PIDs to payload readers.

public TsPayloadReadercreatePayloadReader(int streamType, TsPayloadReader.EsInfo esInfo)

Returns a TsPayloadReader for a given stream type and elementary stream information.

Methods

public <any> createInitialPayloadReaders()

Returns the initial mapping from PIDs to payload readers.

This method allows the injection of payload readers for reserved PIDs, excluding PID 0.

Returns:

A that maps PIDs to payload readers.

public TsPayloadReader createPayloadReader(int streamType, TsPayloadReader.EsInfo esInfo)

Returns a TsPayloadReader for a given stream type and elementary stream information. May return null if the stream type is not supported.

Parameters:

streamType: Stream type value as defined in the PMT entry or associated descriptors.
esInfo: Information associated to the elementary stream provided in the PMT.

Returns:

A TsPayloadReader for the packet stream carried by the provided pid, or null if the stream is not supported.