- 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>
(static) getExtension(uri) → {string}
Parameters:
Name | Type | Description |
---|---|---|
uri |
string |
- Source:
Returns:
- Type
- string
(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>
(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) isSupported(uri, mimeType) → {boolean}
Determines whether or not this URI and MIME type are supported by our own
manifest parsers on this platform. This takes into account whether or not
MediaSource is available, as well as which parsers are registered to the
system.
Parameters:
Name | Type | Description |
---|---|---|
uri |
string | |
mimeType |
string |
- Source:
Returns:
- Type
- boolean
(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: