HlsPlaylistParserFactory


@UnstableApi
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 functions

ParsingLoadable.Parser<HlsPlaylist!>!

Returns a stand-alone playlist parser.

ParsingLoadable.Parser<HlsPlaylist!>!
createPlaylistParser(
    multivariantPlaylist: HlsMultivariantPlaylist!,
    previousMediaPlaylist: HlsMediaPlaylist?
)

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

Public functions

createPlaylistParser

fun createPlaylistParser(): ParsingLoadable.Parser<HlsPlaylist!>!

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

createPlaylistParser

fun createPlaylistParser(
    multivariantPlaylist: HlsMultivariantPlaylist!,
    previousMediaPlaylist: HlsMediaPlaylist?
): ParsingLoadable.Parser<HlsPlaylist!>!

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

Parameters
multivariantPlaylist: HlsMultivariantPlaylist!

The multivariant playlist that referenced any parsed media playlists.

previousMediaPlaylist: HlsMediaPlaylist?

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

Returns
ParsingLoadable.Parser<HlsPlaylist!>!

A parser for HLS playlists.