DefaultHlsPlaylistParserFactory


@UnstableApi
class DefaultHlsPlaylistParserFactory : HlsPlaylistParserFactory


Default implementation for HlsPlaylistParserFactory.

Summary

Public constructors

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 constructors

DefaultHlsPlaylistParserFactory

DefaultHlsPlaylistParserFactory()

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.