Constructor
new ManifestParser()
An interface to register manifest parsers.
- Source:
Members
AccessibilityPurpose :string
Type:
- string
Properties:
Name | Value | Type | Description |
---|---|---|---|
VISUALLY_IMPAIRED |
visually impaired | string | |
HARD_OF_HEARING |
hard of hearing | string |
- Source:
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
getFactory(uri, mimeTypenullable) → {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 | ||
mimeType |
string |
<nullable> |
- Source:
Returns:
isSupported(mimeType) → {boolean}
Determines whether or not the MIME type is 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 |
---|---|---|
mimeType |
string |
- Source:
Returns:
- Type
- boolean
probeSupport() → {Object.<string, boolean>}
Returns a map of manifest support for well-known types.
- Source:
Returns:
- Type
- Object.<string, boolean>
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:
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:
unregisterParserByMime(mimeType)
Unregisters a manifest parser by MIME type.
Parameters:
Name | Type | Description |
---|---|---|
mimeType |
string | The MIME type of the manifest. |
- Source: