Class DefaultTsPayloadReaderFactory

    • Field Detail

      • FLAG_ALLOW_NON_IDR_KEYFRAMES

        public static final int FLAG_ALLOW_NON_IDR_KEYFRAMES
        Deprecated.
        When extracting H.264 samples, whether to treat samples consisting of non-IDR I slices as synchronization samples (key-frames).
        See Also:
        Constant Field Values
      • FLAG_IGNORE_AAC_STREAM

        public static final int FLAG_IGNORE_AAC_STREAM
        Deprecated.
        Prevents the creation of AdtsReader and LatmReader instances. This flag should be enabled if the transport stream contains no packets for an AAC elementary stream that is declared in the PMT.
        See Also:
        Constant Field Values
      • FLAG_IGNORE_H264_STREAM

        public static final int FLAG_IGNORE_H264_STREAM
        Deprecated.
        Prevents the creation of H264Reader instances. This flag should be enabled if the transport stream contains no packets for an H.264 elementary stream that is declared in the PMT.
        See Also:
        Constant Field Values
      • FLAG_DETECT_ACCESS_UNITS

        public static final int FLAG_DETECT_ACCESS_UNITS
        Deprecated.
        When extracting H.264 samples, whether to split the input stream into access units (samples) based on slice headers. This flag should be disabled if the stream contains access unit delimiters (AUDs).
        See Also:
        Constant Field Values
      • FLAG_IGNORE_SPLICE_INFO_STREAM

        public static final int FLAG_IGNORE_SPLICE_INFO_STREAM
        Deprecated.
        Prevents the creation of SectionPayloadReaders for splice information sections (SCTE-35).
        See Also:
        Constant Field Values
      • FLAG_OVERRIDE_CAPTION_DESCRIPTORS

        public static final int FLAG_OVERRIDE_CAPTION_DESCRIPTORS
        Deprecated.
        Whether the list of closedCaptionFormats passed to DefaultTsPayloadReaderFactory(int, List) should be used in spite of any closed captions service descriptors. If this flag is disabled, closedCaptionFormats will be ignored if the PMT contains closed captions service descriptors.
        See Also:
        Constant Field Values
      • FLAG_ENABLE_HDMV_DTS_AUDIO_STREAMS

        public static final int FLAG_ENABLE_HDMV_DTS_AUDIO_STREAMS
        Deprecated.
        Sets whether HDMV DTS audio streams will be handled. If this flag is set, SCTE subtitles will not be detected, as they share the same elementary stream type as HDMV DTS.
        See Also:
        Constant Field Values
    • Constructor Detail

      • DefaultTsPayloadReaderFactory

        public DefaultTsPayloadReaderFactory()
        Deprecated.
      • DefaultTsPayloadReaderFactory

        public DefaultTsPayloadReaderFactory​(@com.google.android.exoplayer2.extractor.ts.DefaultTsPayloadReaderFactory.Flags int flags)
        Deprecated.
        Parameters:
        flags - A combination of FLAG_* values that control the behavior of the created readers.
      • DefaultTsPayloadReaderFactory

        public DefaultTsPayloadReaderFactory​(@com.google.android.exoplayer2.extractor.ts.DefaultTsPayloadReaderFactory.Flags int flags,
                                             List<Format> closedCaptionFormats)
        Deprecated.
        Parameters:
        flags - A combination of FLAG_* values that control the behavior of the created readers.
        closedCaptionFormats - Formats to be exposed by payload readers for streams with embedded closed captions when no caption service descriptors are provided. If FLAG_OVERRIDE_CAPTION_DESCRIPTORS is set, closedCaptionFormats overrides any descriptor information. If not set, and closedCaptionFormats is empty, a closed caption track with Format.accessibilityChannel Format.NO_VALUE will be exposed.