public class BrightcoveOfflineMediaPresentationDescriptionParser
extends com.google.android.exoplayer.dash.mpd.MediaPresentationDescriptionParser
Constructor and Description |
---|
BrightcoveOfflineMediaPresentationDescriptionParser() |
BrightcoveOfflineMediaPresentationDescriptionParser(java.lang.String contentId) |
Modifier and Type | Method and Description |
---|---|
protected com.google.android.exoplayer.dash.mpd.SegmentBase.SegmentTemplate |
buildSegmentTemplate(com.google.android.exoplayer.dash.mpd.RangedUri initialization,
long timescale,
long presentationTimeOffset,
int startNumber,
long duration,
java.util.List<com.google.android.exoplayer.dash.mpd.SegmentBase.SegmentTimelineElement> timeline,
com.google.android.exoplayer.dash.mpd.UrlTemplate initializationTemplate,
com.google.android.exoplayer.dash.mpd.UrlTemplate mediaTemplate) |
protected java.lang.String |
getLocalBaseUrl(java.lang.String remoteFileUrl,
java.lang.String id)
Gets the local base url based on the directory of the master.mpd manifest, the name retrieved
from the remoteFileUrl and its id.
|
com.google.android.exoplayer.dash.mpd.MediaPresentationDescription |
parse(java.lang.String connectionUrl,
java.io.InputStream inputStream) |
protected com.google.android.exoplayer.dash.mpd.Representation |
parseRepresentation(org.xmlpull.v1.XmlPullParser xpp,
java.lang.String baseUrl,
java.lang.String adaptationSetMimeType,
java.lang.String adaptationSetCodecs,
int adaptationSetWidth,
int adaptationSetHeight,
float adaptationSetFrameRate,
int adaptationSetAudioChannels,
int adaptationSetAudioSamplingRate,
java.lang.String adaptationSetLanguage,
com.google.android.exoplayer.dash.mpd.SegmentBase segmentBase,
com.google.android.exoplayer.dash.mpd.MediaPresentationDescriptionParser.ContentProtectionsBuilder contentProtectionsBuilder) |
buildAdaptationSet, buildAdaptationSet, buildContentProtection, buildFormat, buildMediaPresentationDescription, buildPeriod, buildRangedUri, buildRepresentation, buildSegmentList, buildSegmentTimelineElement, buildSingleSegmentBase, buildUtcTimingElement, getContentType, parseAdaptationSet, parseAdaptationSetChild, parseAudioChannelConfiguration, parseBaseUrl, parseContentProtection, parseContentType, parseDateTime, parseDuration, parseFrameRate, parseInitialization, parseInt, parseInt, parseLong, parseLong, parseMediaPresentationDescription, parsePeriod, parseRangedUrl, parseRoleTag, parseSegmentBase, parseSegmentList, parseSegmentTemplate, parseSegmentTimeline, parseSegmentUrl, parseString, parseUrlTemplate, parseUtcTiming
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
public BrightcoveOfflineMediaPresentationDescriptionParser()
public BrightcoveOfflineMediaPresentationDescriptionParser(java.lang.String contentId)
protected com.google.android.exoplayer.dash.mpd.SegmentBase.SegmentTemplate buildSegmentTemplate(com.google.android.exoplayer.dash.mpd.RangedUri initialization, long timescale, long presentationTimeOffset, int startNumber, long duration, java.util.List<com.google.android.exoplayer.dash.mpd.SegmentBase.SegmentTimelineElement> timeline, com.google.android.exoplayer.dash.mpd.UrlTemplate initializationTemplate, com.google.android.exoplayer.dash.mpd.UrlTemplate mediaTemplate)
buildSegmentTemplate
in class com.google.android.exoplayer.dash.mpd.MediaPresentationDescriptionParser
public com.google.android.exoplayer.dash.mpd.MediaPresentationDescription parse(java.lang.String connectionUrl, java.io.InputStream inputStream) throws java.io.IOException, com.google.android.exoplayer.ParserException
parse
in interface com.google.android.exoplayer.upstream.UriLoadable.Parser<com.google.android.exoplayer.dash.mpd.MediaPresentationDescription>
parse
in class com.google.android.exoplayer.dash.mpd.MediaPresentationDescriptionParser
java.io.IOException
com.google.android.exoplayer.ParserException
protected com.google.android.exoplayer.dash.mpd.Representation parseRepresentation(org.xmlpull.v1.XmlPullParser xpp, java.lang.String baseUrl, java.lang.String adaptationSetMimeType, java.lang.String adaptationSetCodecs, int adaptationSetWidth, int adaptationSetHeight, float adaptationSetFrameRate, int adaptationSetAudioChannels, int adaptationSetAudioSamplingRate, java.lang.String adaptationSetLanguage, com.google.android.exoplayer.dash.mpd.SegmentBase segmentBase, com.google.android.exoplayer.dash.mpd.MediaPresentationDescriptionParser.ContentProtectionsBuilder contentProtectionsBuilder) throws org.xmlpull.v1.XmlPullParserException, java.io.IOException
parseRepresentation
in class com.google.android.exoplayer.dash.mpd.MediaPresentationDescriptionParser
org.xmlpull.v1.XmlPullParserException
java.io.IOException
@NonNull protected java.lang.String getLocalBaseUrl(@NonNull java.lang.String remoteFileUrl, @Nullable java.lang.String id)
remoteFileUrl
- the remote base urlid
- the asset id