Class HlsPlaylistParser
- java.lang.Object
-
- com.google.android.exoplayer2.source.hls.playlist.HlsPlaylistParser
-
- All Implemented Interfaces:
ParsingLoadable.Parser<HlsPlaylist>
@Deprecated public final class HlsPlaylistParser extends Object implements ParsingLoadable.Parser<HlsPlaylist>
Deprecated.com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.HLS playlists parsing logic.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HlsPlaylistParser.DeltaUpdateException
Deprecated.Exception thrown when merging a delta update fails.
-
Constructor Summary
Constructors Constructor Description HlsPlaylistParser()
Deprecated.Creates an instance where media playlists are parsed without inheriting attributes from a multivariant playlist.HlsPlaylistParser(HlsMultivariantPlaylist multivariantPlaylist, HlsMediaPlaylist previousMediaPlaylist)
Deprecated.Creates an instance where parsed media playlists inherit attributes from the given multivariant playlist.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description HlsPlaylist
parse(Uri uri, InputStream inputStream)
Deprecated.Parses an object from a response.
-
-
-
Constructor Detail
-
HlsPlaylistParser
public HlsPlaylistParser()
Deprecated.Creates an instance where media playlists are parsed without inheriting attributes from a multivariant playlist.
-
HlsPlaylistParser
public HlsPlaylistParser(HlsMultivariantPlaylist multivariantPlaylist, @Nullable HlsMediaPlaylist previousMediaPlaylist)
Deprecated.Creates an instance where parsed media playlists inherit attributes from the given multivariant playlist.- Parameters:
multivariantPlaylist
- The multivariant playlist from which media playlists will inherit attributes.previousMediaPlaylist
- The previous media playlist from which the new media playlist may inherit skipped segments.
-
-
Method Detail
-
parse
public HlsPlaylist parse(Uri uri, InputStream inputStream) throws IOException
Deprecated.Description copied from interface:ParsingLoadable.Parser
Parses an object from a response.- Specified by:
parse
in interfaceParsingLoadable.Parser<HlsPlaylist>
- Parameters:
uri
- The sourceUri
of the response, after any redirection.inputStream
- AnInputStream
from which the response data can be read.- Returns:
- The parsed object.
- Throws:
ParserException
- If an error occurs parsing the data.IOException
- If an error occurs reading data from the stream.
-
-