public static interface TsPayloadReader.Factory
TsPayloadReader instances.| Modifier and Type | Method and Description |
|---|---|
android.util.SparseArray<TsPayloadReader> |
createInitialPayloadReaders()
Returns the initial mapping from PIDs to payload readers.
|
TsPayloadReader |
createPayloadReader(int streamType,
TsPayloadReader.EsInfo esInfo)
Returns a
TsPayloadReader for a given stream type and elementary stream information. |
android.util.SparseArray<TsPayloadReader> createInitialPayloadReaders()
This method allows the injection of payload readers for reserved PIDs, excluding PID 0.
SparseArray that maps PIDs to payload readers.TsPayloadReader createPayloadReader(int streamType, TsPayloadReader.EsInfo esInfo)
TsPayloadReader for a given stream type and elementary stream information.
May return null if the stream type is not supported.streamType - Stream type value as defined in the PMT entry or associated descriptors.esInfo - Information associated to the elementary stream provided in the PMT.TsPayloadReader for the packet stream carried by the provided pid.
null if the stream is not supported.