> Documentation index: https://developer.android.com/reference/llms.txt

# DashManifestParser

Artifact: [androidx.media3:media3-exoplayer-dash](https://developer.android.com/jetpack/androidx/releases/media3.md.txt) [View Source](https://cs.android.com/search?q=file:androidx/media3/exoplayer/dash/manifest/DashManifestParser.java+class:androidx.media3.exoplayer.dash.manifest.DashManifestParser)

*** ** * ** ***


```
@UnstableApi
class DashManifestParser : DefaultHandler, ParsingLoadable.Parser<DashManifest!>
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [org.xml.sax.helpers.DefaultHandler](https://developer.android.com/reference/org/xml/sax/helpers/DefaultHandler.md.txt) ||
|   | ↳ | [androidx.media3.exoplayer.dash.manifest.DashManifestParser](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/DashManifestParser.md.txt) |

*** ** * ** ***

A parser of media presentation description files.

## Summary

| ### Nested types |
|---|
| `protected class DashManifestParser.RepresentationInfo` A parsed Representation element. |

| ### Public constructors |
|---|
| `DashManifestParser()` |

| ### Public functions |
|---|---|
| `java-static Unit` | `maybeSkipTag(xpp: XmlPullParser!)` If the provided `XmlPullParser` is currently positioned at the start of a tag, skips forward to the end of that tag. |
| `DashManifest!` | `parse(uri: Uri!, inputStream: InputStream!)` Parses an object from a response. |

| ### Protected functions |
|---|---|
| `AdaptationSet!` | `buildAdaptationSet( id: Long, @C.TrackType contentType: Int, representations: (Mutable)List<Representation!>!, accessibilityDescriptors: (Mutable)List<Descriptor!>!, essentialProperties: (Mutable)List<Descriptor!>!, supplementalProperties: (Mutable)List<Descriptor!>!, producerReferenceTimes: ImmutableList<ProducerReferenceTime!>! )` |
| `EventMessage!` | `buildEvent( schemeIdUri: String!, value: String!, id: Long, durationMs: Long, messageData: ByteArray<Byte>! )` |
| `EventStream!` | `buildEventStream( schemeIdUri: String!, value: String!, timescale: Long, presentationTimesUs: LongArray<Long>!, events: Array<EventMessage!>! )` |
| `Format!` | `buildFormat( id: String?, containerMimeType: String?, width: Int, height: Int, frameRate: Float, audioChannels: Int, audioSamplingRate: Int, bitrate: Int, language: String?, roleDescriptors: (Mutable)List<Descriptor!>!, accessibilityDescriptors: (Mutable)List<Descriptor!>!, codecs: String?, supplementalCodecs: String?, supplementalProfiles: String?, essentialProperties: (Mutable)List<Descriptor!>!, supplementalProperties: (Mutable)List<Descriptor!>! )` |
| `DashManifest!` | `[buildMediaPresentationDescription](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/DashManifestParser#buildMediaPresentationDescription(long,long,long,boolean,long,long,long,long,androidx.media3.exoplayer.dash.manifest.ProgramInformation,androidx.media3.exoplayer.dash.manifest.UtcTimingElement,androidx.media3.exoplayer.dash.manifest.ServiceDescriptionElement,android.net.Uri,java.util.List<androidx.media3.exoplayer.dash.manifest.Period>))( availabilityStartTime: Long, durationMs: Long, minBufferTimeMs: Long, dynamic: Boolean, minUpdateTimeMs: Long, timeShiftBufferDepthMs: Long, suggestedPresentationDelayMs: Long, publishTimeMs: Long, programInformation: ProgramInformation?, utcTiming: UtcTimingElement?, serviceDescription: ServiceDescriptionElement?, location: Uri?, periods: (Mutable)List<Period!>! )` **This function is deprecated.** Use `buildMediaPresentationDescription` instead. <br /> |
| `DashManifest!` | `[buildMediaPresentationDescription](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/DashManifestParser#buildMediaPresentationDescription(long,long,long,boolean,long,long,long,long,androidx.media3.exoplayer.dash.manifest.ProgramInformation,androidx.media3.exoplayer.dash.manifest.UtcTimingElement,androidx.media3.exoplayer.dash.manifest.ServiceDescriptionElement,java.util.List<androidx.media3.exoplayer.dash.manifest.Period>,java.util.List<androidx.media3.exoplayer.dash.manifest.Location>))( availabilityStartTime: Long, durationMs: Long, minBufferTimeMs: Long, dynamic: Boolean, minUpdateTimeMs: Long, timeShiftBufferDepthMs: Long, suggestedPresentationDelayMs: Long, publishTimeMs: Long, programInformation: ProgramInformation?, utcTiming: UtcTimingElement?, serviceDescription: ServiceDescriptionElement?, periods: (Mutable)List<Period!>!, locations: (Mutable)List<Location!>! )` **This function is deprecated.** Use `buildMediaPresentationDescription` instead. <br /> |
| `DashManifest!` | `buildMediaPresentationDescription( availabilityStartTime: Long, durationMs: Long, minBufferTimeMs: Long, dynamic: Boolean, minUpdateTimeMs: Long, timeShiftBufferDepthMs: Long, suggestedPresentationDelayMs: Long, publishTimeMs: Long, programInformation: ProgramInformation?, utcTiming: UtcTimingElement?, serviceDescription: ServiceDescriptionElement?, periods: (Mutable)List<Period!>!, locations: (Mutable)List<Location!>!, contentSteering: ContentSteering? )` |
| `Period!` | `buildPeriod( id: String?, startMs: Long, adaptationSets: (Mutable)List<AdaptationSet!>!, eventStreams: (Mutable)List<EventStream!>!, assetIdentifier: Descriptor?, alternativeMpdEvents: (Mutable)List<AlternativeMpdEvent!>! )` |
| `ProducerReferenceTime!` | `buildProducerReferenceTime( id: Long, inband: Boolean, @ProducerReferenceTime.ProducerReferenceTimeType type: Int, applicationScheme: String?, wallClockTimeMs: Long, presentationTime: Long, utcTiming: UtcTimingElement? )` |
| `RangedUri!` | `buildRangedUri(urlText: String?, rangeStart: Long, rangeLength: Long)` |
| `Representation!` | `buildRepresentation( representationInfo: DashManifestParser.RepresentationInfo!, label: String?, labels: (Mutable)List<Label!>!, extraDrmSchemeType: String?, extraDrmSchemeDatas: ArrayList<DrmInitData.SchemeData!>!, extraInbandEventStreams: ArrayList<Descriptor!>! )` |
| `SegmentBase.SegmentList!` | `buildSegmentList( initialization: RangedUri?, timescale: Long, presentationTimeOffset: Long, startNumber: Long, duration: Long, timeline: (Mutable)List<SegmentBase.SegmentTimelineElement!>?, availabilityTimeOffsetUs: Long, segments: (Mutable)List<RangedUri!>?, timeShiftBufferDepthMs: Long, periodStartUnixTimeMs: Long )` |
| `SegmentBase.SegmentTemplate!` | `buildSegmentTemplate( initialization: RangedUri?, timescale: Long, presentationTimeOffset: Long, startNumber: Long, endNumber: Long, duration: Long, timeline: (Mutable)List<SegmentBase.SegmentTimelineElement!>?, availabilityTimeOffsetUs: Long, initializationTemplate: UrlTemplate?, mediaTemplate: UrlTemplate?, timeShiftBufferDepthMs: Long, periodStartUnixTimeMs: Long )` |
| `SegmentBase.SegmentTimelineElement!` | `buildSegmentTimelineElement(startTime: Long, duration: Long)` |
| `SegmentBase.SingleSegmentBase!` | `buildSingleSegmentBase( initialization: RangedUri?, timescale: Long, presentationTimeOffset: Long, indexStart: Long, indexLength: Long )` |
| `UtcTimingElement!` | `buildUtcTimingElement(schemeIdUri: String!, value: String!)` |
| `AdaptationSet!` | `parseAdaptationSet( xpp: XmlPullParser!, parentBaseUrls: (Mutable)List<BaseUrl!>!, segmentBase: SegmentBase?, periodDurationMs: Long, baseUrlAvailabilityTimeOffsetUs: Long, segmentBaseAvailabilityTimeOffsetUs: Long, periodStartUnixTimeMs: Long, timeShiftBufferDepthMs: Long, dvbProfileDeclared: Boolean )` |
| `Unit` | `parseAdaptationSetChild(xpp: XmlPullParser!)` Parses a child of an `AdaptationSet` element. |
| `Int` | `parseAudioChannelConfiguration(xpp: XmlPullParser!, codecs: String?)` |
| `Long` | `parseAvailabilityTimeOffsetUs( xpp: XmlPullParser!, parentAvailabilityTimeOffsetUs: Long )` Parses the availabilityTimeOffset value and returns the parsed value or the parent value if it doesn't exist. |
| `(Mutable)List<BaseUrl!>!` | `parseBaseUrl( xpp: XmlPullParser!, parentBaseUrls: (Mutable)List<BaseUrl!>!, dvbProfileDeclared: Boolean )` Parses a BaseURL element. |
| `java-static Boolean` | `parseBoolean(xpp: XmlPullParser!, name: String!, defaultValue: Boolean)` |
| `java-static Int` | `parseCea608AccessibilityChannel( accessibilityDescriptors: (Mutable)List<Descriptor!>! )` |
| `java-static Int` | `parseCea708AccessibilityChannel( accessibilityDescriptors: (Mutable)List<Descriptor!>! )` |
| `ColorInfo?` | `parseColorInfoFromProperties( essentialProperties: (Mutable)List<Descriptor!>!, supplementalProperties: (Mutable)List<Descriptor!>! )` Parses given descriptors for CICP color information (ISO/IEC 23091-2). |
| `java-static Array<String!>!` | `parseCommaSeparatedList( xpp: XmlPullParser!, attributeName: String!, defaultValue: Array<String!>! )` |
| `Pair<String?, DrmInitData.SchemeData?>!` | `parseContentProtection(xpp: XmlPullParser!)` Parses a ContentProtection element. |
| `ContentSteering!` | `parseContentSteering(xpp: XmlPullParser!, documentBaseUri: Uri!)` |
| `Int` | `@C.TrackType parseContentType(xpp: XmlPullParser!)` |
| `java-static Long` | `parseDateTime(xpp: XmlPullParser!, name: String!, defaultValue: Long)` |
| `java-static Descriptor!` | `parseDescriptor(xpp: XmlPullParser!, tag: String!)` Parses a `Descriptor` from an element. |
| `java-static Int` | `parseDolbyAC4ChannelConfiguration(xpp: XmlPullParser!, codecs: String?)` Parses the number of channels from the value attribute of an AudioChannelConfiguration with schemeIdUri "tag:dolby.com,2015:dash:audio_channel_configuration:2015" as defined by table A.27 in ETSI TS 103 190-2 v1.2.1. |
| `java-static Int` | `parseDolbyChannelConfiguration(xpp: XmlPullParser!)` Parses the number of channels from the value attribute of an AudioChannelConfiguration with schemeIdUri "tag:dolby.com,2014:dash:audio_channel_configuration:2011" as defined by table E.5 in ETSI TS 102 366, or by the legacy schemeIdUri "urn:dolby:dash:audio_channel_configuration:2011". |
| `java-static Double` | `parseDouble(xpp: XmlPullParser!, name: String!, defaultValue: Double)` |
| `java-static Int` | `parseDtsChannelConfiguration(xpp: XmlPullParser!)` Parses the number of channels from the value attribute of an AudioChannelConfiguration with schemeIdUri "tag:dts.com,2014:dash:audio_channel_configuration:2012" as defined by Annex G (3.2) in ETSI TS 102 114 V1.6.1, or by the legacy schemeIdUri "urn:dts:dash:audio_channel_configuration:2012". |
| `java-static Int` | `parseDtsxChannelConfiguration(xpp: XmlPullParser!)` Parses the number of channels from the value attribute of an AudioChannelConfiguration with schemeIdUri "tag:dts.com,2018:uhd:audio_channel_configuration" as defined by table B-5 in ETSI TS 103 491 v1.2.1. |
| `java-static Long` | `parseDuration(xpp: XmlPullParser!, name: String!, defaultValue: Long)` |
| `java-static String!` | `parseEac3SupplementalProperties( supplementalProperties: (Mutable)List<Descriptor!>! )` |
| `Pair<Long!, EventMessage!>!` | `parseEvent( xpp: XmlPullParser!, schemeIdUri: String!, value: String!, timescale: Long, presentationTimeOffset: Long, scratchOutputStream: ByteArrayOutputStream! )` Parses a single Event node in the manifest. |
| `Array<Byte>!` | `parseEventObject( xpp: XmlPullParser!, scratchOutputStream: ByteArrayOutputStream! )` Parses an event object. |
| `EventStream!` | `[parseEventStream](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/DashManifestParser#parseEventStream(org.xmlpull.v1.XmlPullParser))(xpp: XmlPullParser!)` **This function is deprecated.** Use `parseEventStream` instead. <br /> |
| `Pair<EventStream!, (Mutable)List<AlternativeMpdEvent!>!>!` | `parseEventStream(xpp: XmlPullParser!, baseUri: String!)` Parses an `EventStream` node in the manifest, also extracting any `AlternativeMpdEvent`s if the stream uses an Alternative MPD scheme. |
| `java-static Float` | `parseFloat(xpp: XmlPullParser!, name: String!, defaultValue: Float)` |
| `java-static Float` | `parseFrameRate(xpp: XmlPullParser!, defaultValue: Float)` |
| `RangedUri!` | `parseInitialization(xpp: XmlPullParser!)` |
| `java-static Int` | `parseInt(xpp: XmlPullParser!, name: String!, defaultValue: Int)` |
| `Label!` | `parseLabel(xpp: XmlPullParser!)` Parses a Label element. |
| `java-static Long` | `parseLastSegmentNumberSupplementalProperty( supplementalProperties: (Mutable)List<Descriptor!>! )` |
| `java-static Long` | `parseLong(xpp: XmlPullParser!, name: String!, defaultValue: Long)` |
| `DashManifest!` | `parseMediaPresentationDescription( xpp: XmlPullParser!, documentBaseUri: Uri! )` |
| `java-static Int` | `parseMpegChannelConfiguration(xpp: XmlPullParser!)` Parses the number of channels from the value attribute of an AudioChannelConfiguration with schemeIdUri "urn:mpeg:mpegB:cicp:ChannelConfiguration", as defined by ISO 23091-3:2018 clause 6.2. |
| `Pair<Period!, Long!>!` | `parsePeriod( xpp: XmlPullParser!, parentBaseUrls: (Mutable)List<BaseUrl!>!, defaultStartMs: Long, baseUrlAvailabilityTimeOffsetUs: Long, availabilityStartTimeMs: Long, timeShiftBufferDepthMs: Long, dvbProfileDeclared: Boolean )` |
| `ProducerReferenceTime!` | `parseProducerReferenceTime(xpp: XmlPullParser!)` |
| `Int` | `@ProducerReferenceTime.ProducerReferenceTimeType parseProducerReferenceTimeType(type: String?)` |
| `Array<String!>!` | `parseProfiles( xpp: XmlPullParser!, attributeName: String!, defaultValue: Array<String!>! )` |
| `ProgramInformation!` | `parseProgramInformation(xpp: XmlPullParser!)` |
| `RangedUri!` | `parseRangedUrl( xpp: XmlPullParser!, urlAttribute: String!, rangeAttribute: String! )` |
| `DashManifestParser.RepresentationInfo!` | `parseRepresentation( xpp: XmlPullParser!, parentBaseUrls: (Mutable)List<BaseUrl!>!, adaptationSetMimeType: String?, adaptationSetCodecs: String?, adaptationSetSupplementalCodecs: String?, adaptationSetSupplementalProfiles: String?, adaptationSetWidth: Int, adaptationSetHeight: Int, adaptationSetFrameRate: Float, adaptationSetAudioChannels: Int, adaptationSetAudioSamplingRate: Int, adaptationSetLanguage: String?, adaptationSetRoleDescriptors: (Mutable)List<Descriptor!>!, adaptationSetAccessibilityDescriptors: (Mutable)List<Descriptor!>!, adaptationSetEssentialProperties: (Mutable)List<Descriptor!>!, adaptationSetSupplementalProperties: (Mutable)List<Descriptor!>!, segmentBase: SegmentBase?, periodStartUnixTimeMs: Long, periodDurationMs: Long, baseUrlAvailabilityTimeOffsetUs: Long, segmentBaseAvailabilityTimeOffsetUs: Long, timeShiftBufferDepthMs: Long, dvbProfileDeclared: Boolean )` |
| `Int` | `@C.RoleFlags parseRoleFlagsFromAccessibilityDescriptors( accessibilityDescriptors: (Mutable)List<Descriptor!>! )` |
| `Int` | `@C.RoleFlags parseRoleFlagsFromDashRoleScheme(value: String?)` |
| `Int` | `@C.RoleFlags parseRoleFlagsFromProperties( accessibilityDescriptors: (Mutable)List<Descriptor!>! )` |
| `Int` | `@C.RoleFlags parseRoleFlagsFromRoleDescriptors( roleDescriptors: (Mutable)List<Descriptor!>! )` |
| `SegmentBase.SingleSegmentBase!` | `parseSegmentBase( xpp: XmlPullParser!, parent: SegmentBase.SingleSegmentBase? )` |
| `SegmentBase.SegmentList!` | `parseSegmentList( xpp: XmlPullParser!, parent: SegmentBase.SegmentList?, periodStartUnixTimeMs: Long, periodDurationMs: Long, baseUrlAvailabilityTimeOffsetUs: Long, segmentBaseAvailabilityTimeOffsetUs: Long, timeShiftBufferDepthMs: Long )` |
| `SegmentBase.SegmentTemplate!` | `parseSegmentTemplate( xpp: XmlPullParser!, parent: SegmentBase.SegmentTemplate?, adaptationSetSupplementalProperties: (Mutable)List<Descriptor!>!, periodStartUnixTimeMs: Long, periodDurationMs: Long, baseUrlAvailabilityTimeOffsetUs: Long, segmentBaseAvailabilityTimeOffsetUs: Long, timeShiftBufferDepthMs: Long )` |
| `(Mutable)List<SegmentBase.SegmentTimelineElement!>!` | `parseSegmentTimeline( xpp: XmlPullParser!, timescale: Long, periodDurationMs: Long )` |
| `RangedUri!` | `parseSegmentUrl(xpp: XmlPullParser!)` |
| `Int` | `@C.SelectionFlags parseSelectionFlagsFromDashRoleScheme(value: String?)` |
| `Int` | `@C.SelectionFlags parseSelectionFlagsFromRoleDescriptors( roleDescriptors: (Mutable)List<Descriptor!>! )` |
| `ServiceDescriptionElement!` | `parseServiceDescription(xpp: XmlPullParser!)` |
| `java-static String!` | `parseString(xpp: XmlPullParser!, name: String!, defaultValue: String!)` |
| `java-static String!` | `parseText(xpp: XmlPullParser!, label: String!)` |
| `Pair<Int!, Int!>?` | `parseTileCountFromProperties( essentialProperties: (Mutable)List<Descriptor!>! )` Parses given descriptors for thumbnail tile information. |
| `Int` | `@C.RoleFlags parseTvaAudioPurposeCsValue(value: String?)` |
| `UrlTemplate?` | `parseUrlTemplate( xpp: XmlPullParser!, name: String!, defaultValue: UrlTemplate? )` |
| `UtcTimingElement?` | `parseUtcTiming(xpp: XmlPullParser!)` |

### Inherited functions

From [org.xml.sax.helpers.DefaultHandler](https://developer.android.com/reference/org/xml/sax/helpers/DefaultHandler.md.txt) `Unit` `characters(ch: CharArray<Char>!, start: Int, length: Int)` `Unit` `endDocument()` `Unit` `endElement(uri: String!, localName: String!, qName: String!)` `Unit` `endPrefixMapping(prefix: String!)` `Unit` `error(e: SAXParseException!)` `Unit` `fatalError(e: SAXParseException!)` `Unit` `ignorableWhitespace(ch: CharArray<Char>!, start: Int, length: Int)` `Unit` `notationDecl(name: String!, publicId: String!, systemId: String!)` `Unit` `processingInstruction(target: String!, data: String!)` `InputSource!` `resolveEntity(publicId: String!, systemId: String!)` `Unit` `setDocumentLocator(locator: Locator!)` `Unit` `skippedEntity(name: String!)` `Unit` `startDocument()` `Unit` `startElement(
uri: String!,
localName: String!,
qName: String!,
attributes: Attributes!
)` `Unit` `startPrefixMapping(prefix: String!, uri: String!)` `Unit` `unparsedEntityDecl(
name: String!,
publicId: String!,
systemId: String!,
notationName: String!
)` `Unit` `warning(e: SAXParseException!)`

## Public constructors

### DashManifestParser

```
DashManifestParser()
```

## Public functions

### maybeSkipTag

```
java-static fun maybeSkipTag(xpp: XmlPullParser!): Unit
```

If the provided `XmlPullParser` is currently positioned at the start of a tag, skips forward to the end of that tag.

| Parameters |
|---|---|
| `xpp: XmlPullParser!` | The `XmlPullParser`. |

| Throws |
|---|---|
| `org.xmlpull.v1.XmlPullParserException` | If an error occurs parsing the stream. |
| `java.io.IOException` | If an error occurs reading the stream. |

### parse

```
fun parse(uri: Uri!, inputStream: InputStream!): DashManifest!
```

Parses an object from a response.

| Parameters |
|---|---|
| `uri: Uri!` | The source `Uri` of the response, after any redirection. |
| `inputStream: InputStream!` | An `InputStream` from which the response data can be read. |

| Returns |
|---|---|
| `DashManifest!` | The parsed object. |

| Throws |
|---|---|
| `androidx.media3.common.ParserException` | If an error occurs parsing the data. |
| `java.io.IOException` | If an error occurs reading data from the stream. |

## Protected functions

### buildAdaptationSet

```
protected fun buildAdaptationSet(
    id: Long,
    @C.TrackType contentType: Int,
    representations: (Mutable)List<Representation!>!,
    accessibilityDescriptors: (Mutable)List<Descriptor!>!,
    essentialProperties: (Mutable)List<Descriptor!>!,
    supplementalProperties: (Mutable)List<Descriptor!>!,
    producerReferenceTimes: ImmutableList<ProducerReferenceTime!>!
): AdaptationSet!
```

### buildEvent

```
protected fun buildEvent(
    schemeIdUri: String!,
    value: String!,
    id: Long,
    durationMs: Long,
    messageData: ByteArray<Byte>!
): EventMessage!
```

### buildEventStream

```
protected fun buildEventStream(
    schemeIdUri: String!,
    value: String!,
    timescale: Long,
    presentationTimesUs: LongArray<Long>!,
    events: Array<EventMessage!>!
): EventStream!
```

### buildFormat

```
protected fun buildFormat(
    id: String?,
    containerMimeType: String?,
    width: Int,
    height: Int,
    frameRate: Float,
    audioChannels: Int,
    audioSamplingRate: Int,
    bitrate: Int,
    language: String?,
    roleDescriptors: (Mutable)List<Descriptor!>!,
    accessibilityDescriptors: (Mutable)List<Descriptor!>!,
    codecs: String?,
    supplementalCodecs: String?,
    supplementalProfiles: String?,
    essentialProperties: (Mutable)List<Descriptor!>!,
    supplementalProperties: (Mutable)List<Descriptor!>!
): Format!
```

### buildMediaPresentationDescription

```
protected fun [buildMediaPresentationDescription](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/DashManifestParser#buildMediaPresentationDescription(long,long,long,boolean,long,long,long,long,androidx.media3.exoplayer.dash.manifest.ProgramInformation,androidx.media3.exoplayer.dash.manifest.UtcTimingElement,androidx.media3.exoplayer.dash.manifest.ServiceDescriptionElement,android.net.Uri,java.util.List<androidx.media3.exoplayer.dash.manifest.Period>))(
    availabilityStartTime: Long,
    durationMs: Long,
    minBufferTimeMs: Long,
    dynamic: Boolean,
    minUpdateTimeMs: Long,
    timeShiftBufferDepthMs: Long,
    suggestedPresentationDelayMs: Long,
    publishTimeMs: Long,
    programInformation: ProgramInformation?,
    utcTiming: UtcTimingElement?,
    serviceDescription: ServiceDescriptionElement?,
    location: Uri?,
    periods: (Mutable)List<Period!>!
): DashManifest!
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `buildMediaPresentationDescription` instead.

### buildMediaPresentationDescription

```
protected fun [buildMediaPresentationDescription](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/DashManifestParser#buildMediaPresentationDescription(long,long,long,boolean,long,long,long,long,androidx.media3.exoplayer.dash.manifest.ProgramInformation,androidx.media3.exoplayer.dash.manifest.UtcTimingElement,androidx.media3.exoplayer.dash.manifest.ServiceDescriptionElement,java.util.List<androidx.media3.exoplayer.dash.manifest.Period>,java.util.List<androidx.media3.exoplayer.dash.manifest.Location>))(
    availabilityStartTime: Long,
    durationMs: Long,
    minBufferTimeMs: Long,
    dynamic: Boolean,
    minUpdateTimeMs: Long,
    timeShiftBufferDepthMs: Long,
    suggestedPresentationDelayMs: Long,
    publishTimeMs: Long,
    programInformation: ProgramInformation?,
    utcTiming: UtcTimingElement?,
    serviceDescription: ServiceDescriptionElement?,
    periods: (Mutable)List<Period!>!,
    locations: (Mutable)List<Location!>!
): DashManifest!
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `buildMediaPresentationDescription` instead.

### buildMediaPresentationDescription

```
protected fun buildMediaPresentationDescription(
    availabilityStartTime: Long,
    durationMs: Long,
    minBufferTimeMs: Long,
    dynamic: Boolean,
    minUpdateTimeMs: Long,
    timeShiftBufferDepthMs: Long,
    suggestedPresentationDelayMs: Long,
    publishTimeMs: Long,
    programInformation: ProgramInformation?,
    utcTiming: UtcTimingElement?,
    serviceDescription: ServiceDescriptionElement?,
    periods: (Mutable)List<Period!>!,
    locations: (Mutable)List<Location!>!,
    contentSteering: ContentSteering?
): DashManifest!
```

### buildPeriod

```
protected fun buildPeriod(
    id: String?,
    startMs: Long,
    adaptationSets: (Mutable)List<AdaptationSet!>!,
    eventStreams: (Mutable)List<EventStream!>!,
    assetIdentifier: Descriptor?,
    alternativeMpdEvents: (Mutable)List<AlternativeMpdEvent!>!
): Period!
```

### buildProducerReferenceTime

```
protected fun buildProducerReferenceTime(
    id: Long,
    inband: Boolean,
    @ProducerReferenceTime.ProducerReferenceTimeType type: Int,
    applicationScheme: String?,
    wallClockTimeMs: Long,
    presentationTime: Long,
    utcTiming: UtcTimingElement?
): ProducerReferenceTime!
```

### buildRangedUri

```
protected fun buildRangedUri(urlText: String?, rangeStart: Long, rangeLength: Long): RangedUri!
```

### buildRepresentation

```
protected fun buildRepresentation(
    representationInfo: DashManifestParser.RepresentationInfo!,
    label: String?,
    labels: (Mutable)List<Label!>!,
    extraDrmSchemeType: String?,
    extraDrmSchemeDatas: ArrayList<DrmInitData.SchemeData!>!,
    extraInbandEventStreams: ArrayList<Descriptor!>!
): Representation!
```

### buildSegmentList

```
protected fun buildSegmentList(
    initialization: RangedUri?,
    timescale: Long,
    presentationTimeOffset: Long,
    startNumber: Long,
    duration: Long,
    timeline: (Mutable)List<SegmentBase.SegmentTimelineElement!>?,
    availabilityTimeOffsetUs: Long,
    segments: (Mutable)List<RangedUri!>?,
    timeShiftBufferDepthMs: Long,
    periodStartUnixTimeMs: Long
): SegmentBase.SegmentList!
```

### buildSegmentTemplate

```
protected fun buildSegmentTemplate(
    initialization: RangedUri?,
    timescale: Long,
    presentationTimeOffset: Long,
    startNumber: Long,
    endNumber: Long,
    duration: Long,
    timeline: (Mutable)List<SegmentBase.SegmentTimelineElement!>?,
    availabilityTimeOffsetUs: Long,
    initializationTemplate: UrlTemplate?,
    mediaTemplate: UrlTemplate?,
    timeShiftBufferDepthMs: Long,
    periodStartUnixTimeMs: Long
): SegmentBase.SegmentTemplate!
```

### buildSegmentTimelineElement

```
protected fun buildSegmentTimelineElement(startTime: Long, duration: Long): SegmentBase.SegmentTimelineElement!
```

### buildSingleSegmentBase

```
protected fun buildSingleSegmentBase(
    initialization: RangedUri?,
    timescale: Long,
    presentationTimeOffset: Long,
    indexStart: Long,
    indexLength: Long
): SegmentBase.SingleSegmentBase!
```

### buildUtcTimingElement

```
protected fun buildUtcTimingElement(schemeIdUri: String!, value: String!): UtcTimingElement!
```

### parseAdaptationSet

```
protected fun parseAdaptationSet(
    xpp: XmlPullParser!,
    parentBaseUrls: (Mutable)List<BaseUrl!>!,
    segmentBase: SegmentBase?,
    periodDurationMs: Long,
    baseUrlAvailabilityTimeOffsetUs: Long,
    segmentBaseAvailabilityTimeOffsetUs: Long,
    periodStartUnixTimeMs: Long,
    timeShiftBufferDepthMs: Long,
    dvbProfileDeclared: Boolean
): AdaptationSet!
```

| Throws |
|---|---|
| `org.xmlpull.v1.XmlPullParserException` |   |
| `java.io.IOException` |   |

### parseAdaptationSetChild

```
protected fun parseAdaptationSetChild(xpp: XmlPullParser!): Unit
```

Parses a child of an `AdaptationSet` element.

Called for child elements that are not specifically parsed elsewhere.

| Parameters |
|---|---|
| `xpp: XmlPullParser!` | The `XmlPullParser` from which the child should be parsed. |

| Throws |
|---|---|
| `org.xmlpull.v1.XmlPullParserException` | If an error occurs parsing the element. |
| `java.io.IOException` | If an error occurs reading the element. |

### parseAudioChannelConfiguration

```
protected fun parseAudioChannelConfiguration(xpp: XmlPullParser!, codecs: String?): Int
```

| Throws |
|---|---|
| `org.xmlpull.v1.XmlPullParserException` |   |
| `java.io.IOException` |   |

### parseAvailabilityTimeOffsetUs

```
protected fun parseAvailabilityTimeOffsetUs(
    xpp: XmlPullParser!,
    parentAvailabilityTimeOffsetUs: Long
): Long
```

Parses the availabilityTimeOffset value and returns the parsed value or the parent value if it doesn't exist.

| Parameters |
|---|---|
| `xpp: XmlPullParser!` | The parser from which to read. |
| `parentAvailabilityTimeOffsetUs: Long` | The availability time offset of a parent element in microseconds. |

| Returns |
|---|---|
| `Long` | The parsed availabilityTimeOffset in microseconds. |

### parseBaseUrl

```
protected fun parseBaseUrl(
    xpp: XmlPullParser!,
    parentBaseUrls: (Mutable)List<BaseUrl!>!,
    dvbProfileDeclared: Boolean
): (Mutable)List<BaseUrl!>!
```

Parses a BaseURL element.

| Parameters |
|---|---|
| `xpp: XmlPullParser!` | The parser from which to read. |
| `parentBaseUrls: (Mutable)List<BaseUrl!>!` | The parent base URLs for resolving the parsed URLs. |
| `dvbProfileDeclared: Boolean` | Whether the dvb profile is declared. |

| Returns |
|---|---|
| `(Mutable)List<BaseUrl!>!` | The list of parsed and resolved URLs. |

| Throws |
|---|---|
| `org.xmlpull.v1.XmlPullParserException` | If an error occurs parsing the element. |
| `java.io.IOException` | If an error occurs reading the element. |

### parseBoolean

```
protected java-static fun parseBoolean(xpp: XmlPullParser!, name: String!, defaultValue: Boolean): Boolean
```

### parseCea608AccessibilityChannel

```
protected java-static fun parseCea608AccessibilityChannel(
    accessibilityDescriptors: (Mutable)List<Descriptor!>!
): Int
```

### parseCea708AccessibilityChannel

```
protected java-static fun parseCea708AccessibilityChannel(
    accessibilityDescriptors: (Mutable)List<Descriptor!>!
): Int
```

### parseColorInfoFromProperties

```
protected fun parseColorInfoFromProperties(
    essentialProperties: (Mutable)List<Descriptor!>!,
    supplementalProperties: (Mutable)List<Descriptor!>!
): ColorInfo?
```

Parses given descriptors for CICP color information (ISO/IEC 23091-2).

| Parameters |
|---|---|
| `essentialProperties: (Mutable)List<Descriptor!>!` | List of essential property descriptors. |
| `supplementalProperties: (Mutable)List<Descriptor!>!` | List of supplemental property descriptors. |

| Returns |
|---|---|
| `ColorInfo?` | The parsed `ColorInfo`, or `null` if no CICP color information is found. |

### parseCommaSeparatedList

```
protected java-static fun parseCommaSeparatedList(
    xpp: XmlPullParser!,
    attributeName: String!,
    defaultValue: Array<String!>!
): Array<String!>!
```

### parseContentProtection

```
protected fun parseContentProtection(xpp: XmlPullParser!): Pair<String?, DrmInitData.SchemeData?>!
```

Parses a ContentProtection element.

| Parameters |
|---|---|
| `xpp: XmlPullParser!` | The parser from which to read. |

| Returns |
|---|---|
| `Pair<String?, DrmInitData.SchemeData?>!` | The scheme type and/or `SchemeData` parsed from the ContentProtection element. Either or both may be null, depending on the ContentProtection element being parsed. |

| Throws |
|---|---|
| `org.xmlpull.v1.XmlPullParserException` | If an error occurs parsing the element. |
| `java.io.IOException` | If an error occurs reading the element. |

### parseContentSteering

```
protected fun parseContentSteering(xpp: XmlPullParser!, documentBaseUri: Uri!): ContentSteering!
```

| Throws |
|---|---|
| `org.xmlpull.v1.XmlPullParserException` |   |
| `java.io.IOException` |   |

### parseContentType

```
@C.TrackType
protected fun parseContentType(xpp: XmlPullParser!): Int
```

### parseDateTime

```
protected java-static fun parseDateTime(xpp: XmlPullParser!, name: String!, defaultValue: Long): Long
```

| Throws |
|---|---|
| `androidx.media3.common.ParserException` |   |

### parseDescriptor

```
protected java-static fun parseDescriptor(xpp: XmlPullParser!, tag: String!): Descriptor!
```

Parses a `Descriptor` from an element.

| Parameters |
|---|---|
| `xpp: XmlPullParser!` | The parser from which to read. |
| `tag: String!` | The tag of the element being parsed. |

| Returns |
|---|---|
| `Descriptor!` | The parsed `Descriptor`. |

| Throws |
|---|---|
| `org.xmlpull.v1.XmlPullParserException` | If an error occurs parsing the element. |
| `java.io.IOException` | If an error occurs reading the element. |

### parseDolbyAC4ChannelConfiguration

```
protected java-static fun parseDolbyAC4ChannelConfiguration(xpp: XmlPullParser!, codecs: String?): Int
```

Parses the number of channels from the value attribute of an AudioChannelConfiguration with schemeIdUri "tag:dolby.com,2015:dash:audio_channel_configuration:2015" as defined by table A.27 in ETSI TS 103 190-2 v1.2.1.

| Parameters |
|---|---|
| `xpp: XmlPullParser!` | The parser from which to read. |
| `codecs: String?` | The codecs string from the current element being parsed. |

| Returns |
|---|---|
| `Int` | The parsed number of channels, or `NO_VALUE` if the channel count could not be parsed. |

### parseDolbyChannelConfiguration

```
protected java-static fun parseDolbyChannelConfiguration(xpp: XmlPullParser!): Int
```

Parses the number of channels from the value attribute of an AudioChannelConfiguration with schemeIdUri "tag:dolby.com,2014:dash:audio_channel_configuration:2011" as defined by table E.5 in ETSI TS 102 366, or by the legacy schemeIdUri "urn:dolby:dash:audio_channel_configuration:2011".

| Parameters |
|---|---|
| `xpp: XmlPullParser!` | The parser from which to read. |

| Returns |
|---|---|
| `Int` | The parsed number of channels, or `NO_VALUE` if the channel count could not be parsed. |

### parseDouble

```
protected java-static fun parseDouble(xpp: XmlPullParser!, name: String!, defaultValue: Double): Double
```

### parseDtsChannelConfiguration

```
protected java-static fun parseDtsChannelConfiguration(xpp: XmlPullParser!): Int
```

Parses the number of channels from the value attribute of an AudioChannelConfiguration with schemeIdUri "tag:dts.com,2014:dash:audio_channel_configuration:2012" as defined by Annex G (3.2) in ETSI TS 102 114 V1.6.1, or by the legacy schemeIdUri "urn:dts:dash:audio_channel_configuration:2012".

| Parameters |
|---|---|
| `xpp: XmlPullParser!` | The parser from which to read. |

| Returns |
|---|---|
| `Int` | The parsed number of channels, or `NO_VALUE` if the channel count could not be parsed. |

### parseDtsxChannelConfiguration

```
protected java-static fun parseDtsxChannelConfiguration(xpp: XmlPullParser!): Int
```

Parses the number of channels from the value attribute of an AudioChannelConfiguration with schemeIdUri "tag:dts.com,2018:uhd:audio_channel_configuration" as defined by table B-5 in ETSI TS 103 491 v1.2.1.

| Parameters |
|---|---|
| `xpp: XmlPullParser!` | The parser from which to read. |

| Returns |
|---|---|
| `Int` | The parsed number of channels, or `NO_VALUE` if the channel count could not be parsed. |

### parseDuration

```
protected java-static fun parseDuration(xpp: XmlPullParser!, name: String!, defaultValue: Long): Long
```

### parseEac3SupplementalProperties

```
protected java-static fun parseEac3SupplementalProperties(
    supplementalProperties: (Mutable)List<Descriptor!>!
): String!
```

### parseEvent

```
protected fun parseEvent(
    xpp: XmlPullParser!,
    schemeIdUri: String!,
    value: String!,
    timescale: Long,
    presentationTimeOffset: Long,
    scratchOutputStream: ByteArrayOutputStream!
): Pair<Long!, EventMessage!>!
```

Parses a single Event node in the manifest.

| Parameters |
|---|---|
| `xpp: XmlPullParser!` | The current xml parser. |
| `schemeIdUri: String!` | The schemeIdUri of the parent EventStream. |
| `value: String!` | The schemeIdUri of the parent EventStream. |
| `timescale: Long` | The timescale of the parent EventStream. |
| `presentationTimeOffset: Long` | The unscaled presentation time offset of the parent EventStream. |
| `scratchOutputStream: ByteArrayOutputStream!` | A `ByteArrayOutputStream` that is used when parsing event objects. |

| Returns |
|---|---|
| `Pair<Long!, EventMessage!>!` | A pair containing the node's presentation timestamp in microseconds and the parsed `EventMessage`. |

| Throws |
|---|---|
| `org.xmlpull.v1.XmlPullParserException` | If there is any error parsing this node. |
| `java.io.IOException` | If there is any error reading from the underlying input stream. |

### parseEventObject

```
protected fun parseEventObject(
    xpp: XmlPullParser!,
    scratchOutputStream: ByteArrayOutputStream!
): Array<Byte>!
```

Parses an event object.

| Parameters |
|---|---|
| `xpp: XmlPullParser!` | The current xml parser. |
| `scratchOutputStream: ByteArrayOutputStream!` | A `ByteArrayOutputStream` that's used when parsing the object. |

| Returns |
|---|---|
| `Array<Byte>!` | The serialized byte array. |

| Throws |
|---|---|
| `org.xmlpull.v1.XmlPullParserException` | If there is any error parsing this node. |
| `java.io.IOException` | If there is any error reading from the underlying input stream. |

### parseEventStream

```
protected fun [parseEventStream](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/DashManifestParser#parseEventStream(org.xmlpull.v1.XmlPullParser))(xpp: XmlPullParser!): EventStream!
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `parseEventStream` instead.

Parses a single EventStream node in the manifest.

When `FLAG_PARSE_DASH_ALTERNATIVE_MPD_EVENTS` is disabled, this method is called and used as before to parse all `EventStream` nodes.

When `FLAG_PARSE_DASH_ALTERNATIVE_MPD_EVENTS` is enabled, this method is still used by `parseEventStream` to parse `EventStream` nodes that do not use an Alternative MPD scheme, but it will be made private in the future. Apps must override `parseEventStream` instead, which parses `
EventStream` nodes as before, but also parses Alternative MPD events into the typed `AlternativeMpdEvent` object model of `DashManifest`.

| Parameters |
|---|---|
| `xpp: XmlPullParser!` | The current xml parser. |

| Returns |
|---|---|
| `EventStream!` | The `EventStream` parsed from this EventStream node. |

| Throws |
|---|---|
| `org.xmlpull.v1.XmlPullParserException` | If there is any error parsing this node. |
| `java.io.IOException` | If there is any error reading from the underlying input stream. |

### parseEventStream

```
protected fun parseEventStream(xpp: XmlPullParser!, baseUri: String!): Pair<EventStream!, (Mutable)List<AlternativeMpdEvent!>!>!
```

Parses an `EventStream` node in the manifest, also extracting any `AlternativeMpdEvent`s if the stream uses an Alternative MPD scheme.

If `FLAG_PARSE_DASH_ALTERNATIVE_MPD_EVENTS` is disabled, this method delegates to `parseEventStream` and returns an empty list of `AlternativeMpdEvent`s.

| Parameters |
|---|---|
| `xpp: XmlPullParser!` | The current xml parser. |
| `baseUri: String!` | The base URI used to resolve relative alternative MPD URIs. |

| Returns |
|---|---|
| `Pair<EventStream!, (Mutable)List<AlternativeMpdEvent!>!>!` | A pair of the parsed `EventStream` and the extracted `AlternativeMpdEvent`s (empty if not an Alternative MPD scheme). |

| Throws |
|---|---|
| `org.xmlpull.v1.XmlPullParserException` | If there is any error parsing this node. |
| `java.io.IOException` | If there is any error reading from the underlying input stream. |

### parseFloat

```
protected java-static fun parseFloat(xpp: XmlPullParser!, name: String!, defaultValue: Float): Float
```

### parseFrameRate

```
protected java-static fun parseFrameRate(xpp: XmlPullParser!, defaultValue: Float): Float
```

### parseInitialization

```
protected fun parseInitialization(xpp: XmlPullParser!): RangedUri!
```

### parseInt

```
protected java-static fun parseInt(xpp: XmlPullParser!, name: String!, defaultValue: Int): Int
```

### parseLabel

```
protected fun parseLabel(xpp: XmlPullParser!): Label!
```

Parses a Label element.

| Parameters |
|---|---|
| `xpp: XmlPullParser!` | The parser from which to read. |

| Returns |
|---|---|
| `Label!` | The parsed label. |

| Throws |
|---|---|
| `org.xmlpull.v1.XmlPullParserException` | If an error occurs parsing the element. |
| `java.io.IOException` | If an error occurs reading the element. |

### parseLastSegmentNumberSupplementalProperty

```
protected java-static fun parseLastSegmentNumberSupplementalProperty(
    supplementalProperties: (Mutable)List<Descriptor!>!
): Long
```

### parseLong

```
protected java-static fun parseLong(xpp: XmlPullParser!, name: String!, defaultValue: Long): Long
```

### parseMediaPresentationDescription

```
protected fun parseMediaPresentationDescription(
    xpp: XmlPullParser!,
    documentBaseUri: Uri!
): DashManifest!
```

| Throws |
|---|---|
| `org.xmlpull.v1.XmlPullParserException` |   |
| `java.io.IOException` |   |

### parseMpegChannelConfiguration

```
protected java-static fun parseMpegChannelConfiguration(xpp: XmlPullParser!): Int
```

Parses the number of channels from the value attribute of an AudioChannelConfiguration with schemeIdUri "urn:mpeg:mpegB:cicp:ChannelConfiguration", as defined by ISO 23091-3:2018 clause 6.2.

| Parameters |
|---|---|
| `xpp: XmlPullParser!` | The parser from which to read. |

| Returns |
|---|---|
| `Int` | The parsed number of channels, or `NO_VALUE` if the channel count could not be parsed. |

### parsePeriod

```
protected fun parsePeriod(
    xpp: XmlPullParser!,
    parentBaseUrls: (Mutable)List<BaseUrl!>!,
    defaultStartMs: Long,
    baseUrlAvailabilityTimeOffsetUs: Long,
    availabilityStartTimeMs: Long,
    timeShiftBufferDepthMs: Long,
    dvbProfileDeclared: Boolean
): Pair<Period!, Long!>!
```

| Throws |
|---|---|
| `org.xmlpull.v1.XmlPullParserException` |   |
| `java.io.IOException` |   |

### parseProducerReferenceTime

```
protected fun parseProducerReferenceTime(xpp: XmlPullParser!): ProducerReferenceTime!
```

| Throws |
|---|---|
| `org.xmlpull.v1.XmlPullParserException` |   |
| `java.io.IOException` |   |

### parseProducerReferenceTimeType

```
@ProducerReferenceTime.ProducerReferenceTimeType
protected fun parseProducerReferenceTimeType(type: String?): Int
```

### parseProfiles

```
protected fun parseProfiles(
    xpp: XmlPullParser!,
    attributeName: String!,
    defaultValue: Array<String!>!
): Array<String!>!
```

### parseProgramInformation

```
protected fun parseProgramInformation(xpp: XmlPullParser!): ProgramInformation!
```

| Throws |
|---|---|
| `java.io.IOException` |   |
| `org.xmlpull.v1.XmlPullParserException` |   |

### parseRangedUrl

```
protected fun parseRangedUrl(
    xpp: XmlPullParser!,
    urlAttribute: String!,
    rangeAttribute: String!
): RangedUri!
```

### parseRepresentation

```
protected fun parseRepresentation(
    xpp: XmlPullParser!,
    parentBaseUrls: (Mutable)List<BaseUrl!>!,
    adaptationSetMimeType: String?,
    adaptationSetCodecs: String?,
    adaptationSetSupplementalCodecs: String?,
    adaptationSetSupplementalProfiles: String?,
    adaptationSetWidth: Int,
    adaptationSetHeight: Int,
    adaptationSetFrameRate: Float,
    adaptationSetAudioChannels: Int,
    adaptationSetAudioSamplingRate: Int,
    adaptationSetLanguage: String?,
    adaptationSetRoleDescriptors: (Mutable)List<Descriptor!>!,
    adaptationSetAccessibilityDescriptors: (Mutable)List<Descriptor!>!,
    adaptationSetEssentialProperties: (Mutable)List<Descriptor!>!,
    adaptationSetSupplementalProperties: (Mutable)List<Descriptor!>!,
    segmentBase: SegmentBase?,
    periodStartUnixTimeMs: Long,
    periodDurationMs: Long,
    baseUrlAvailabilityTimeOffsetUs: Long,
    segmentBaseAvailabilityTimeOffsetUs: Long,
    timeShiftBufferDepthMs: Long,
    dvbProfileDeclared: Boolean
): DashManifestParser.RepresentationInfo!
```

| Throws |
|---|---|
| `org.xmlpull.v1.XmlPullParserException` |   |
| `java.io.IOException` |   |

### parseRoleFlagsFromAccessibilityDescriptors

```
@C.RoleFlags
protected fun parseRoleFlagsFromAccessibilityDescriptors(
    accessibilityDescriptors: (Mutable)List<Descriptor!>!
): Int
```

### parseRoleFlagsFromDashRoleScheme

```
@C.RoleFlags
protected fun parseRoleFlagsFromDashRoleScheme(value: String?): Int
```

### parseRoleFlagsFromProperties

```
@C.RoleFlags
protected fun parseRoleFlagsFromProperties(
    accessibilityDescriptors: (Mutable)List<Descriptor!>!
): Int
```

### parseRoleFlagsFromRoleDescriptors

```
@C.RoleFlags
protected fun parseRoleFlagsFromRoleDescriptors(
    roleDescriptors: (Mutable)List<Descriptor!>!
): Int
```

### parseSegmentBase

```
protected fun parseSegmentBase(
    xpp: XmlPullParser!,
    parent: SegmentBase.SingleSegmentBase?
): SegmentBase.SingleSegmentBase!
```

| Throws |
|---|---|
| `org.xmlpull.v1.XmlPullParserException` |   |
| `java.io.IOException` |   |

### parseSegmentList

```
protected fun parseSegmentList(
    xpp: XmlPullParser!,
    parent: SegmentBase.SegmentList?,
    periodStartUnixTimeMs: Long,
    periodDurationMs: Long,
    baseUrlAvailabilityTimeOffsetUs: Long,
    segmentBaseAvailabilityTimeOffsetUs: Long,
    timeShiftBufferDepthMs: Long
): SegmentBase.SegmentList!
```

| Throws |
|---|---|
| `org.xmlpull.v1.XmlPullParserException` |   |
| `java.io.IOException` |   |

### parseSegmentTemplate

```
protected fun parseSegmentTemplate(
    xpp: XmlPullParser!,
    parent: SegmentBase.SegmentTemplate?,
    adaptationSetSupplementalProperties: (Mutable)List<Descriptor!>!,
    periodStartUnixTimeMs: Long,
    periodDurationMs: Long,
    baseUrlAvailabilityTimeOffsetUs: Long,
    segmentBaseAvailabilityTimeOffsetUs: Long,
    timeShiftBufferDepthMs: Long
): SegmentBase.SegmentTemplate!
```

| Throws |
|---|---|
| `org.xmlpull.v1.XmlPullParserException` |   |
| `java.io.IOException` |   |

### parseSegmentTimeline

```
protected fun parseSegmentTimeline(
    xpp: XmlPullParser!,
    timescale: Long,
    periodDurationMs: Long
): (Mutable)List<SegmentBase.SegmentTimelineElement!>!
```

| Throws |
|---|---|
| `org.xmlpull.v1.XmlPullParserException` |   |
| `java.io.IOException` |   |

### parseSegmentUrl

```
protected fun parseSegmentUrl(xpp: XmlPullParser!): RangedUri!
```

### parseSelectionFlagsFromDashRoleScheme

```
@C.SelectionFlags
protected fun parseSelectionFlagsFromDashRoleScheme(value: String?): Int
```

### parseSelectionFlagsFromRoleDescriptors

```
@C.SelectionFlags
protected fun parseSelectionFlagsFromRoleDescriptors(
    roleDescriptors: (Mutable)List<Descriptor!>!
): Int
```

### parseServiceDescription

```
protected fun parseServiceDescription(xpp: XmlPullParser!): ServiceDescriptionElement!
```

| Throws |
|---|---|
| `org.xmlpull.v1.XmlPullParserException` |   |
| `java.io.IOException` |   |

### parseString

```
protected java-static fun parseString(xpp: XmlPullParser!, name: String!, defaultValue: String!): String!
```

### parseText

```
protected java-static fun parseText(xpp: XmlPullParser!, label: String!): String!
```

| Throws |
|---|---|
| `org.xmlpull.v1.XmlPullParserException` |   |
| `java.io.IOException` |   |

### parseTileCountFromProperties

```
protected fun parseTileCountFromProperties(
    essentialProperties: (Mutable)List<Descriptor!>!
): Pair<Int!, Int!>?
```

Parses given descriptors for thumbnail tile information.

| Parameters |
|---|---|
| `essentialProperties: (Mutable)List<Descriptor!>!` | List of descriptors that contain thumbnail tile information. |

| Returns |
|---|---|
| `Pair<Int!, Int!>?` | A pair of Integer values, where the first is the count of horizontal tiles and the second is the count of vertical tiles, or null if no thumbnail tile information is found. |

### parseTvaAudioPurposeCsValue

```
@C.RoleFlags
protected fun parseTvaAudioPurposeCsValue(value: String?): Int
```

### parseUrlTemplate

```
protected fun parseUrlTemplate(
    xpp: XmlPullParser!,
    name: String!,
    defaultValue: UrlTemplate?
): UrlTemplate?
```

### parseUtcTiming

```
protected fun parseUtcTiming(xpp: XmlPullParser!): UtcTimingElement?
```