Class: shaka.media.ManifestParser

An interface to register manifest parsers.

Source:

Members

(static, non-null) parsersByExtension :Object.<string, shakaExtern.ManifestParser.Factory>

Contains the parser factory functions indexed by file extension.
Type:
Source:

(static, non-null) parsersByMime :Object.<string, shakaExtern.ManifestParser.Factory>

Contains the parser factory functions indexed by MIME type.
Type:
Source:

Methods

(static) getFactory(manifestUri, netEnginenon-null, retryParams, opt_manifestParserFactoryopt) → (non-null) {Promise.<shakaExtern.ManifestParser.Factory>}

Finds a manifest parser factory to parse the given manifest.
Parameters:
Name Type Attributes Description
manifestUri string
netEngine shaka.net.NetworkingEngine
retryParams shakaExtern.RetryParameters
opt_manifestParserFactory shakaExtern.ManifestParser.Factory <optional>
Source:
Returns:
Type
Promise.<shakaExtern.ManifestParser.Factory>

(static) probeSupport() → (non-null) {Object.<string, boolean>}

Returns a map of manifest support for well-known types.
Source:
Returns:
Type
Object.<string, boolean>

(static) registerParserByExtension(extension, parserFactory)

Registers a manifest parser by file extension.
Parameters:
Name Type Description
extension string The file extension of the manifest.
parserFactory shakaExtern.ManifestParser.Factory The factory used to create parser instances.
Source:

(static) registerParserByMime(mimeType, parserFactory)

Registers a manifest parser by MIME type.
Parameters:
Name Type Description
mimeType string The MIME type of the manifest.
parserFactory shakaExtern.ManifestParser.Factory The factory used to create parser instances.
Source: