FilteringManifestParser


@UnstableApi
class FilteringManifestParser<T : FilterableManifest<T!>?> : ParsingLoadable.Parser


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

Parameters
<T : FilterableManifest<T!>?>

The FilterableManifest type.

Summary

Public constructors

FilteringManifestParser(
    parser: ParsingLoadable.Parser<T!>!,
    streamKeys: (Mutable)List<StreamKey!>?
)

Public functions

T!
parse(uri: Uri!, inputStream: InputStream!)

Parses an object from a response.

Public constructors

FilteringManifestParser

FilteringManifestParser(
    parser: ParsingLoadable.Parser<T!>!,
    streamKeys: (Mutable)List<StreamKey!>?
)
Parameters
parser: ParsingLoadable.Parser<T!>!

A parser for the manifest that will be filtered.

streamKeys: (Mutable)List<StreamKey!>?

The stream keys. If null or empty then filtering will not occur.

Public functions

parse

fun parse(uri: Uri!, inputStream: InputStream!): T!

Parses an object from a response.

Parameters
uri: Uri!

The source Uri of the response, after any redirection.

inputStream: InputStream!

An InputStream from which the response data can be read.

Returns
T!

The parsed object.

Throws
androidx.media3.common.ParserException

If an error occurs parsing the data.

java.io.IOException

If an error occurs reading data from the stream.