Skip navigation links
A B C D E F G H I M O P R S T U V 

A

addListener(HlsPlaylistTracker.PlaylistEventListener) - Method in class com.google.android.exoplayer2.source.hls.playlist.HlsPlaylistTracker
Registers a listener to receive events from the playlist tracker.
audios - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMasterPlaylist
The list of demuxed audios declared by the playlist.

B

baseUri - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsPlaylist
The base uri.
byterangeLength - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist.Segment
The segment's byte range length, as defined by #EXT-X-BYTERANGE, or C.LENGTH_UNSET if no byte range is specified.
byterangeOffset - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist.Segment
The segment's byte range offset, as defined by #EXT-X-BYTERANGE.

C

com.google.android.exoplayer2.source.hls - package com.google.android.exoplayer2.source.hls
 
com.google.android.exoplayer2.source.hls.playlist - package com.google.android.exoplayer2.source.hls.playlist
 
compareTo(Long) - Method in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist.Segment
 
continueLoading(long) - Method in class com.google.android.exoplayer2.source.hls.HlsMediaPeriod
 
copyWith(long, int) - Method in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist
Returns a playlist identical to this one except for the start time, the discontinuity sequence and hasDiscontinuitySequence values.
copyWithEndTag() - Method in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist
Returns a playlist identical to this one except that an end tag is added.
createDataSource(int) - Method in class com.google.android.exoplayer2.source.hls.DefaultHlsDataSourceFactory
 
createDataSource(int) - Method in interface com.google.android.exoplayer2.source.hls.HlsDataSourceFactory
Creates a DataSource for the given data type.
createMediaPlaylistHlsUrl(String) - Static method in class com.google.android.exoplayer2.source.hls.playlist.HlsMasterPlaylist.HlsUrl
Creates an HLS url from a given http url.
createPeriod(MediaSource.MediaPeriodId, Allocator) - Method in class com.google.android.exoplayer2.source.hls.HlsMediaSource
 
createSingleVariantMasterPlaylist(String) - Static method in class com.google.android.exoplayer2.source.hls.playlist.HlsMasterPlaylist
Creates a playlist with a single variant.

D

DEFAULT_MIN_LOADABLE_RETRY_COUNT - Static variable in class com.google.android.exoplayer2.source.hls.HlsMediaSource
The default minimum number of times to retry loading data prior to failing.
DefaultHlsDataSourceFactory - Class in com.google.android.exoplayer2.source.hls
Default implementation of HlsDataSourceFactory.
DefaultHlsDataSourceFactory(DataSource.Factory) - Constructor for class com.google.android.exoplayer2.source.hls.DefaultHlsDataSourceFactory
 
discardBuffer(long) - Method in class com.google.android.exoplayer2.source.hls.HlsMediaPeriod
 
discontinuitySequence - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist
The discontinuity sequence number of the first media segment in the playlist, as defined by #EXT-X-DISCONTINUITY-SEQUENCE.
durationUs - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist
The total duration of the playlist in microseconds.
durationUs - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist.Segment
The duration of the segment in microseconds, as defined by #EXTINF.

E

encryptionIV - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist.Segment
The encryption initialization vector as defined by #EXT-X-KEY, or null if the segment is not encrypted.
encryptionKeyUri - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist.Segment
The encryption key uri as defined by #EXT-X-KEY, or null if the segment is not encrypted.

F

format - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMasterPlaylist.HlsUrl
Format information associated with the HLS url.

G

getAdjuster(int) - Method in class com.google.android.exoplayer2.source.hls.TimestampAdjusterProvider
Returns a TimestampAdjuster suitable for adjusting the pts timestamps contained in a chunk with a given discontinuity sequence.
getBufferedPositionUs() - Method in class com.google.android.exoplayer2.source.hls.HlsMediaPeriod
 
getEndTimeUs() - Method in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist
Returns the result of adding the duration of the playlist to its start time.
getMasterPlaylist() - Method in class com.google.android.exoplayer2.source.hls.playlist.HlsPlaylistTracker
Returns the master playlist.
getNextLoadPositionUs() - Method in class com.google.android.exoplayer2.source.hls.HlsMediaPeriod
 
getPlaylistSnapshot(HlsMasterPlaylist.HlsUrl) - Method in class com.google.android.exoplayer2.source.hls.playlist.HlsPlaylistTracker
Returns the most recent snapshot available of the playlist referenced by the provided HlsMasterPlaylist.HlsUrl.
getTrackGroups() - Method in class com.google.android.exoplayer2.source.hls.HlsMediaPeriod
 

H

hasDiscontinuitySequence - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist
Whether the playlist contains the #EXT-X-DISCONTINUITY-SEQUENCE tag.
hasEndTag - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist
Whether the playlist contains the #EXT-X-ENDLIST tag.
hasIndependentSegmentsTag - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist
Whether the playlist contains the #EXT-X-INDEPENDENT-SEGMENTS tag.
hasProgramDateTime - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist
Whether the playlist contains a #EXT-X-PROGRAM-DATE-TIME tag.
HlsDataSourceFactory - Interface in com.google.android.exoplayer2.source.hls
Creates DataSources for HLS playlists, encryption and media chunks.
HlsManifest - Class in com.google.android.exoplayer2.source.hls
Holds a master playlist along with a snapshot of one of its media playlists.
HlsMasterPlaylist - Class in com.google.android.exoplayer2.source.hls.playlist
Represents an HLS master playlist.
HlsMasterPlaylist(String, List<String>, List<HlsMasterPlaylist.HlsUrl>, List<HlsMasterPlaylist.HlsUrl>, List<HlsMasterPlaylist.HlsUrl>, Format, List<Format>) - Constructor for class com.google.android.exoplayer2.source.hls.playlist.HlsMasterPlaylist
 
HlsMasterPlaylist.HlsUrl - Class in com.google.android.exoplayer2.source.hls.playlist
Represents a url in an HLS master playlist.
HlsMediaPeriod - Class in com.google.android.exoplayer2.source.hls
A MediaPeriod that loads an HLS stream.
HlsMediaPeriod(HlsPlaylistTracker, HlsDataSourceFactory, int, AdaptiveMediaSourceEventListener.EventDispatcher, Allocator) - Constructor for class com.google.android.exoplayer2.source.hls.HlsMediaPeriod
 
HlsMediaPlaylist - Class in com.google.android.exoplayer2.source.hls.playlist
Represents an HLS media playlist.
HlsMediaPlaylist(int, String, List<String>, long, long, boolean, int, int, int, long, boolean, boolean, boolean, HlsMediaPlaylist.Segment, List<HlsMediaPlaylist.Segment>) - Constructor for class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist
 
HlsMediaPlaylist.PlaylistType - Annotation Type in com.google.android.exoplayer2.source.hls.playlist
Type of the playlist as defined by #EXT-X-PLAYLIST-TYPE.
HlsMediaPlaylist.Segment - Class in com.google.android.exoplayer2.source.hls.playlist
Media segment reference.
HlsMediaSource - Class in com.google.android.exoplayer2.source.hls
An HLS MediaSource.
HlsMediaSource(Uri, DataSource.Factory, Handler, AdaptiveMediaSourceEventListener) - Constructor for class com.google.android.exoplayer2.source.hls.HlsMediaSource
 
HlsMediaSource(Uri, DataSource.Factory, int, Handler, AdaptiveMediaSourceEventListener) - Constructor for class com.google.android.exoplayer2.source.hls.HlsMediaSource
 
HlsMediaSource(Uri, HlsDataSourceFactory, int, Handler, AdaptiveMediaSourceEventListener) - Constructor for class com.google.android.exoplayer2.source.hls.HlsMediaSource
 
HlsPlaylist - Class in com.google.android.exoplayer2.source.hls.playlist
Represents an HLS playlist.
HlsPlaylist(String, List<String>) - Constructor for class com.google.android.exoplayer2.source.hls.playlist.HlsPlaylist
 
HlsPlaylistParser - Class in com.google.android.exoplayer2.source.hls.playlist
HLS playlists parsing logic.
HlsPlaylistParser() - Constructor for class com.google.android.exoplayer2.source.hls.playlist.HlsPlaylistParser
 
HlsPlaylistTracker - Class in com.google.android.exoplayer2.source.hls.playlist
Tracks playlists linked to a provided playlist url.
HlsPlaylistTracker(Uri, HlsDataSourceFactory, AdaptiveMediaSourceEventListener.EventDispatcher, int, HlsPlaylistTracker.PrimaryPlaylistListener) - Constructor for class com.google.android.exoplayer2.source.hls.playlist.HlsPlaylistTracker
 
HlsPlaylistTracker.PlaylistEventListener - Interface in com.google.android.exoplayer2.source.hls.playlist
Called on playlist loading events.
HlsPlaylistTracker.PlaylistResetException - Exception in com.google.android.exoplayer2.source.hls.playlist
Thrown when the media sequence of a new snapshot indicates the server has reset.
HlsPlaylistTracker.PlaylistStuckException - Exception in com.google.android.exoplayer2.source.hls.playlist
Thrown when a playlist is considered to be stuck due to a server side error.
HlsPlaylistTracker.PrimaryPlaylistListener - Interface in com.google.android.exoplayer2.source.hls.playlist
Listener for primary playlist changes.
HlsUrl(String, Format) - Constructor for class com.google.android.exoplayer2.source.hls.playlist.HlsMasterPlaylist.HlsUrl
 

I

initializationSegment - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist
The initialization segment, as defined by #EXT-X-MAP.
isEncrypted - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist.Segment
Whether the segment is encrypted, as defined by #EXT-X-KEY.
isLive() - Method in class com.google.android.exoplayer2.source.hls.playlist.HlsPlaylistTracker
Returns whether this is live content.
isNewerThan(HlsMediaPlaylist) - Method in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist
Returns whether this playlist is newer than other.
isSnapshotValid(HlsMasterPlaylist.HlsUrl) - Method in class com.google.android.exoplayer2.source.hls.playlist.HlsPlaylistTracker
Returns whether the snapshot of the playlist referenced by the provided HlsMasterPlaylist.HlsUrl is valid, meaning all the segments referenced by the playlist are expected to be available.

M

masterPlaylist - Variable in class com.google.android.exoplayer2.source.hls.HlsManifest
The master playlist of an HLS stream.
maybeThrowPlaylistRefreshError(HlsMasterPlaylist.HlsUrl) - Method in class com.google.android.exoplayer2.source.hls.playlist.HlsPlaylistTracker
If the playlist is having trouble refreshing the playlist referenced by the given HlsMasterPlaylist.HlsUrl, this method throws the underlying error.
maybeThrowPrepareError() - Method in class com.google.android.exoplayer2.source.hls.HlsMediaPeriod
 
maybeThrowPrimaryPlaylistRefreshError() - Method in class com.google.android.exoplayer2.source.hls.playlist.HlsPlaylistTracker
If the tracker is having trouble refreshing the master playlist or the primary playlist, this method throws the underlying error.
maybeThrowSourceInfoRefreshError() - Method in class com.google.android.exoplayer2.source.hls.HlsMediaSource
 
mediaPlaylist - Variable in class com.google.android.exoplayer2.source.hls.HlsManifest
A snapshot of a media playlist referred to by HlsManifest.masterPlaylist.
mediaSequence - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist
The media sequence number of the first media segment in the playlist, as defined by #EXT-X-MEDIA-SEQUENCE.
muxedAudioFormat - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMasterPlaylist
The format of the audio muxed in the variants.
muxedCaptionFormats - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMasterPlaylist
The format of the closed captions declared by the playlist.

O

onContinueLoadingRequested(HlsSampleStreamWrapper) - Method in class com.google.android.exoplayer2.source.hls.HlsMediaPeriod
 
onLoadCanceled(ParsingLoadable<HlsPlaylist>, long, long, boolean) - Method in class com.google.android.exoplayer2.source.hls.playlist.HlsPlaylistTracker
 
onLoadCompleted(ParsingLoadable<HlsPlaylist>, long, long) - Method in class com.google.android.exoplayer2.source.hls.playlist.HlsPlaylistTracker
 
onLoadError(ParsingLoadable<HlsPlaylist>, long, long, IOException) - Method in class com.google.android.exoplayer2.source.hls.playlist.HlsPlaylistTracker
 
onPlaylistBlacklisted(HlsMasterPlaylist.HlsUrl, long) - Method in class com.google.android.exoplayer2.source.hls.HlsMediaPeriod
 
onPlaylistBlacklisted(HlsMasterPlaylist.HlsUrl, long) - Method in interface com.google.android.exoplayer2.source.hls.playlist.HlsPlaylistTracker.PlaylistEventListener
Called if an error is encountered while loading a playlist.
onPlaylistChanged() - Method in class com.google.android.exoplayer2.source.hls.HlsMediaPeriod
 
onPlaylistChanged() - Method in interface com.google.android.exoplayer2.source.hls.playlist.HlsPlaylistTracker.PlaylistEventListener
Called a playlist changes.
onPlaylistRefreshRequired(HlsMasterPlaylist.HlsUrl) - Method in class com.google.android.exoplayer2.source.hls.HlsMediaPeriod
 
onPrepared() - Method in class com.google.android.exoplayer2.source.hls.HlsMediaPeriod
 
onPrimaryPlaylistRefreshed(HlsMediaPlaylist) - Method in class com.google.android.exoplayer2.source.hls.HlsMediaSource
 
onPrimaryPlaylistRefreshed(HlsMediaPlaylist) - Method in interface com.google.android.exoplayer2.source.hls.playlist.HlsPlaylistTracker.PrimaryPlaylistListener
Called when the primary playlist changes.

P

parse(Uri, InputStream) - Method in class com.google.android.exoplayer2.source.hls.playlist.HlsPlaylistParser
 
PLAYLIST_TYPE_EVENT - Static variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist
 
PLAYLIST_TYPE_UNKNOWN - Static variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist
 
PLAYLIST_TYPE_VOD - Static variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist
 
playlistType - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist
The type of the playlist.
prepare(MediaPeriod.Callback, long) - Method in class com.google.android.exoplayer2.source.hls.HlsMediaPeriod
 
prepareSource(ExoPlayer, boolean, MediaSource.Listener) - Method in class com.google.android.exoplayer2.source.hls.HlsMediaSource
 

R

readDiscontinuity() - Method in class com.google.android.exoplayer2.source.hls.HlsMediaPeriod
 
refreshPlaylist(HlsMasterPlaylist.HlsUrl) - Method in class com.google.android.exoplayer2.source.hls.playlist.HlsPlaylistTracker
Triggers a playlist refresh and whitelists it.
relativeDiscontinuitySequence - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist.Segment
The number of #EXT-X-DISCONTINUITY tags in the playlist before the segment.
relativeStartTimeUs - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist.Segment
The start time of the segment in microseconds, relative to the start of the playlist.
release() - Method in class com.google.android.exoplayer2.source.hls.HlsMediaPeriod
 
release() - Method in class com.google.android.exoplayer2.source.hls.playlist.HlsPlaylistTracker
Releases the playlist tracker.
releasePeriod(MediaPeriod) - Method in class com.google.android.exoplayer2.source.hls.HlsMediaSource
 
releaseSource() - Method in class com.google.android.exoplayer2.source.hls.HlsMediaSource
 
removeListener(HlsPlaylistTracker.PlaylistEventListener) - Method in class com.google.android.exoplayer2.source.hls.playlist.HlsPlaylistTracker
Unregisters a listener.
reset() - Method in class com.google.android.exoplayer2.source.hls.TimestampAdjusterProvider
Resets the provider.

S

seekToUs(long) - Method in class com.google.android.exoplayer2.source.hls.HlsMediaPeriod
 
Segment(String, long, long) - Constructor for class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist.Segment
 
Segment(String, long, int, long, boolean, String, String, long, long) - Constructor for class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist.Segment
 
segments - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist
The list of segments in the playlist.
selectTracks(TrackSelection[], boolean[], SampleStream[], boolean[], long) - Method in class com.google.android.exoplayer2.source.hls.HlsMediaPeriod
 
start() - Method in class com.google.android.exoplayer2.source.hls.playlist.HlsPlaylistTracker
Starts tracking all the playlists related to the provided Uri.
startOffsetUs - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist
The start offset in microseconds, as defined by #EXT-X-START.
startTimeUs - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist
The start time of the playlist in playback timebase in microseconds.
subtitles - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMasterPlaylist
The list of subtitles declared by the playlist.

T

tags - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsPlaylist
The list of tags in the playlist.
targetDurationUs - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist
The target duration in microseconds, as defined by #EXT-X-TARGETDURATION.
TimestampAdjusterProvider - Class in com.google.android.exoplayer2.source.hls
Provides TimestampAdjuster instances for use during HLS playbacks.
TimestampAdjusterProvider() - Constructor for class com.google.android.exoplayer2.source.hls.TimestampAdjusterProvider
 

U

url - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMasterPlaylist.HlsUrl
The http url from which the media playlist can be obtained.
url - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist.Segment
The url of the segment.
url - Variable in exception com.google.android.exoplayer2.source.hls.playlist.HlsPlaylistTracker.PlaylistResetException
The url of the reset playlist.
url - Variable in exception com.google.android.exoplayer2.source.hls.playlist.HlsPlaylistTracker.PlaylistStuckException
The url of the stuck playlist.

V

variants - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMasterPlaylist
The list of variants declared by the playlist.
version - Variable in class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist
The compatibility version, as defined by #EXT-X-VERSION.
A B C D E F G H I M O P R S T U V 
Skip navigation links