Class FilteringHlsPlaylistParserFactory
- java.lang.Object
-
- com.google.android.exoplayer2.source.hls.playlist.FilteringHlsPlaylistParserFactory
-
- All Implemented Interfaces:
HlsPlaylistParserFactory
@Deprecated public final class FilteringHlsPlaylistParserFactory extends Object implements HlsPlaylistParserFactory
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.AHlsPlaylistParserFactory
that includes only the streams identified by the given stream keys.
-
-
Constructor Summary
Constructors Constructor Description FilteringHlsPlaylistParserFactory(HlsPlaylistParserFactory hlsPlaylistParserFactory, List<StreamKey> streamKeys)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ParsingLoadable.Parser<HlsPlaylist>
createPlaylistParser()
Deprecated.Returns a stand-alone playlist parser.ParsingLoadable.Parser<HlsPlaylist>
createPlaylistParser(HlsMultivariantPlaylist multivariantPlaylist, HlsMediaPlaylist previousMediaPlaylist)
Deprecated.Returns a playlist parser for playlists that were referenced by the givenHlsMultivariantPlaylist
.
-
-
-
Constructor Detail
-
FilteringHlsPlaylistParserFactory
public FilteringHlsPlaylistParserFactory(HlsPlaylistParserFactory hlsPlaylistParserFactory, List<StreamKey> streamKeys)
Deprecated.- Parameters:
hlsPlaylistParserFactory
- A factory for the parsers of the playlists which will be filtered.streamKeys
- The stream keys. If null or empty then filtering will not occur.
-
-
Method Detail
-
createPlaylistParser
public ParsingLoadable.Parser<HlsPlaylist> createPlaylistParser()
Deprecated.Description copied from interface:HlsPlaylistParserFactory
Returns a stand-alone playlist parser. Playlists parsed by the returned parser do not inherit any attributes from other playlists.- Specified by:
createPlaylistParser
in interfaceHlsPlaylistParserFactory
-
createPlaylistParser
public ParsingLoadable.Parser<HlsPlaylist> createPlaylistParser(HlsMultivariantPlaylist multivariantPlaylist, @Nullable HlsMediaPlaylist previousMediaPlaylist)
Deprecated.Description copied from interface:HlsPlaylistParserFactory
Returns a playlist parser for playlists that were referenced by the givenHlsMultivariantPlaylist
. ReturnedHlsMediaPlaylist
instances may inherit attributes frommultivariantPlaylist
.- Specified by:
createPlaylistParser
in interfaceHlsPlaylistParserFactory
- Parameters:
multivariantPlaylist
- The multivariant playlist that referenced any parsed media playlists.previousMediaPlaylist
- The previous media playlist or null if there is no previous media playlist.- Returns:
- A parser for HLS playlists.
-
-