HlsPlaylistParserFactory


@UnstableApi
public interface HlsPlaylistParserFactory

Known direct subclasses
DefaultHlsPlaylistParserFactory

Default implementation for HlsPlaylistParserFactory.

FilteringHlsPlaylistParserFactory

A HlsPlaylistParserFactory that includes only the streams identified by the given stream keys.


Factory for HlsPlaylist parsers.

Summary

Public methods

abstract ParsingLoadable.Parser<HlsPlaylist>

Returns a stand-alone playlist parser.

abstract ParsingLoadable.Parser<HlsPlaylist>
createPlaylistParser(
    HlsMultivariantPlaylist multivariantPlaylist,
    @Nullable HlsMediaPlaylist previousMediaPlaylist
)

Returns a playlist parser for playlists that were referenced by the given .

Public methods

createPlaylistParser

abstract ParsingLoadable.Parser<HlsPlaylistcreatePlaylistParser()

Returns a stand-alone playlist parser. Playlists parsed by the returned parser do not inherit any attributes from other playlists.

createPlaylistParser

abstract ParsingLoadable.Parser<HlsPlaylistcreatePlaylistParser(
    HlsMultivariantPlaylist multivariantPlaylist,
    @Nullable HlsMediaPlaylist previousMediaPlaylist
)

Returns a playlist parser for playlists that were referenced by the given . Returned HlsMediaPlaylist instances may inherit attributes from multivariantPlaylist.

Parameters
HlsMultivariantPlaylist multivariantPlaylist

The multivariant playlist that referenced any parsed media playlists.

@Nullable HlsMediaPlaylist previousMediaPlaylist

The previous media playlist or null if there is no previous media playlist.

Returns
ParsingLoadable.Parser<HlsPlaylist>

A parser for HLS playlists.