Methods
parse(datanon-null) → {Array<!shaka.extern.MetadataFrame>}
Parses {@code data} and returns every metadata frame found in it.
Implementations MUST:
- Return an empty array (never {@code null}) when no frames are found or the data is not recognised.
- Not throw; all errors should be swallowed and result in an empty or partial return value.
- Use ID3v2.4 four-character frame IDs as {@code key} values wherever a mapping exists (see class-level documentation).
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Uint8Array | Raw bytes of the media segment or file. |
- Source:
Returns:
- Type
- Array<!shaka.extern.MetadataFrame>
Type Definitions
Factory
A factory function that creates a shaka.extern.MetadataParser
instance.
Type:
- function(): !shaka.extern.MetadataParser
- Source: