- Source:
Members
(static, non-null) parsersByExtension :Object.<string, shaka.extern.ManifestParser.Factory>
Contains the parser factory functions indexed by file extension.
Type:
- Object.<string, shaka.extern.ManifestParser.Factory>
- Source:
(static, non-null) parsersByMime :Object.<string, shaka.extern.ManifestParser.Factory>
Contains the parser factory functions indexed by MIME type.
Type:
- Object.<string, shaka.extern.ManifestParser.Factory>
- Source:
Methods
(static) create(uri, netEnginenon-null, retryParams, mimeTypenullable) → (non-null) {Promise.<!shaka.extern.ManifestParser>}
Create a manifest parser to parse the manifest at |uri|.
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>
(private, static) getFactory_(uri, netEnginenon-null, retryParams, mimeTypenullable) → (non-null) {Promise.<shaka.extern.ManifestParser.Factory>}
Get a factory that can create a manifest parser that should be able to parse
the manifest at |uri|.
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: