Class: shaka.media.ManifestParser

An interface to register manifest parsers.

Members

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

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

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

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

Methods

(static) getFactory(uri, netEnginenon-null, retryParams, mimeTypenullable) → (non-null) {Promise.<shaka.extern.ManifestParser.Factory>}

Finds a manifest parser factory to parse the given manifest.
Parameters:
Name Type Attributes Description
uri string
netEngine shaka.net.NetworkingEngine
retryParams shaka.extern.RetryParameters
mimeType string <nullable>
Source:
Returns:
Type
Promise.<shaka.extern.ManifestParser.Factory>

(private, static) getFactory_(uri, netEnginenon-null, retryParams, mimeTypenullable) → (non-null) {Promise.<shaka.extern.ManifestParser.Factory>}

The internal version of |getFactory| which does not ensure the some error constraints as the public |getFactory|.
Parameters:
Name Type Attributes Description
uri string
netEngine shaka.net.NetworkingEngine
retryParams shaka.extern.RetryParameters
mimeType string <nullable>
Source:
Returns:
Type
Promise.<shaka.extern.ManifestParser.Factory>

(private, static) getMimeType_(uri, netEnginenon-null, retryParams) → (non-null) {Promise.<string>}

Parameters:
Name Type Description
uri string
netEngine shaka.net.NetworkingEngine
retryParams shaka.extern.RetryParameters
Source:
Returns:
Type
Promise.<string>

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

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

(export, static) registerParserByExtension(extension, parserFactory)

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

(export, static) registerParserByMime(mimeType, parserFactory)

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