Interface TsPayloadReader.Factory
-
- All Known Implementing Classes:
DefaultTsPayloadReaderFactory
- Enclosing interface:
- TsPayloadReader
public static interface TsPayloadReader.FactoryFactory ofTsPayloadReaderinstances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SparseArray<TsPayloadReader>createInitialPayloadReaders()Returns the initial mapping from PIDs to payload readers.TsPayloadReadercreatePayloadReader(int streamType, TsPayloadReader.EsInfo esInfo)Returns aTsPayloadReaderfor a given stream type and elementary stream information.
-
-
-
Method Detail
-
createInitialPayloadReaders
SparseArray<TsPayloadReader> 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
SparseArraythat maps PIDs to payload readers.
-
createPayloadReader
@Nullable TsPayloadReader createPayloadReader(int streamType, TsPayloadReader.EsInfo esInfo)
Returns aTsPayloadReaderfor 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
TsPayloadReaderfor the packet stream carried by the provided pid, ornullif the stream is not supported.
-
-