TsPayloadReader.EsInfo


public final class TsPayloadReader.EsInfo


Holds information associated with a PMT entry.

Summary

Nested types

@Documented
@Retention(value = SOURCE)
@Target(value = TYPE_USE)
@IntDef(value = )
public annotation TsPayloadReader.EsInfo.AudioType

The audio type of the stream, as defined by ISO/IEC 13818-1, section 2.6.18.

Constants

static final int

Indicates the track has no language.

static final int

Indicates the track is prepared for the hearing impaired.

static final int
static final int

Indicates the track is prepared for the visually impaired viewer.

Public constructors

EsInfo(
    int streamType,
    @Nullable String language,
    @TsPayloadReader.EsInfo.AudioType int audioType,
    @Nullable List<TsPayloadReader.DvbSubtitleInfo> dvbSubtitleInfos,
    byte[] descriptorBytes
)

Public methods

int

Constants

AUDIO_TYPE_CLEAN_EFFECTS

public static final int AUDIO_TYPE_CLEAN_EFFECTS = 1

Indicates the track has no language.

AUDIO_TYPE_HEARING_IMPAIRED

public static final int AUDIO_TYPE_HEARING_IMPAIRED = 2

Indicates the track is prepared for the hearing impaired.

AUDIO_TYPE_UNDEFINED

public static final int AUDIO_TYPE_UNDEFINED = 0

AUDIO_TYPE_VISUAL_IMPAIRED_COMMENTARY

public static final int AUDIO_TYPE_VISUAL_IMPAIRED_COMMENTARY = 3

Indicates the track is prepared for the visually impaired viewer.

Public fields

audioType

@TsPayloadReader.EsInfo.AudioType
public final int audioType

descriptorBytes

public final byte[] descriptorBytes

dvbSubtitleInfos

public final List<TsPayloadReader.DvbSubtitleInfodvbSubtitleInfos

language

public final @Nullable String language

streamType

public final int streamType

Public constructors

EsInfo

public EsInfo(
    int streamType,
    @Nullable String language,
    @TsPayloadReader.EsInfo.AudioType int audioType,
    @Nullable List<TsPayloadReader.DvbSubtitleInfo> dvbSubtitleInfos,
    byte[] descriptorBytes
)
Parameters
int streamType

The type of the stream as defined by the TsExtractor .TS_STREAM_TYPE_*.

@Nullable String language

The language of the stream, as defined by ISO/IEC 13818-1, section 2.6.18.

@TsPayloadReader.EsInfo.AudioType int audioType

The audio type of the stream, as defined by ISO/IEC 13818-1, section 2.6.18.

@Nullable List<TsPayloadReader.DvbSubtitleInfo> dvbSubtitleInfos

Information about DVB subtitles associated to the stream.

byte[] descriptorBytes

The descriptor bytes associated to the stream.

Public methods

getRoleFlags

@C.RoleFlags
public int getRoleFlags()