DefaultHlsPlaylistParserFactory


@UnstableApi
public final class DefaultHlsPlaylistParserFactory implements HlsPlaylistParserFactory


Default implementation for HlsPlaylistParserFactory.

Summary

Public constructors

Public methods

ParsingLoadable.Parser<HlsPlaylist>

Returns a stand-alone playlist parser.

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

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

Public constructors

DefaultHlsPlaylistParserFactory

public DefaultHlsPlaylistParserFactory()

Public methods

createPlaylistParser

public ParsingLoadable.Parser<HlsPlaylistcreatePlaylistParser()

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

createPlaylistParser

public 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.