Members
# (constant) codes :Object
A mapping of ISO-639 (1, 2, 3) codes to names
Type:
- Object
- Source:
# (constant) DEFAULT_STREAM_INDEX
The default stream index of 'audio' streams.
- Source:
# (constant) DEFAULT_STREAM_INDEX
The default stream index of 'subtitle' streams.
- Source:
# (constant) DEFAULT_STREAM_INDEX
The default stream index of 'video' streams.
- Source:
# (constant) SPECIAL_NO_LINGUISTIC_CONTENT :String
The 'zxx' special language code is intended for usage when language is
not present at all such as the sound of an animal.
Type:
- String
- Source:
# (constant) SPECIAL_NO_MULTIPLE_LANGUAGES :String
The 'mul' special language code is intended for usage when multiple languages
are present and a single language code is required.
Type:
- String
- Source:
# (constant) SPECIAL_UNCODED_LANGUAGES :String
The 'mis' special language code is intended for "miscellaneous" languages
that are not yet identified in any ISO standard.
Type:
- String
- Source:
# (constant) SPECIAL_UNDETERMINED_LANGUAGE :String
The 'und' special language code is intended for cases where the language
in the data has not yet been identified.
Type:
- String
- Source:
# (constant) STREAM_TYPE
The stream type (codec_type) for an `AudioTrack` track.
- Source:
# (constant) STREAM_TYPE
The stream type (codec_type) for an `SubtitleTrack` track.
- Source:
# (constant) STREAM_TYPE
The stream type (codec_type) for an `VideoTrack` track.
- Source:
Methods
# lookup(filter, optsnullable) → {Array.<Object>}
Performs a look up for a set of ISO 639 Part 1, 2, & 3
codes. Results may include "scopes" and "types" as well
including the language code and the human readable name.
Callers can "filter" results by supplying a string that is compared
to the code of each language code item, a regular expression that tests
the name of a language code, or a `filter` object to filter on
properties like `topic` and `type` in similar ways.
Example:
// the following will find entries with 'en' language code
lookup('en') // [ { scope: null, code: 'en', name: 'English', type: null } ]
// the following will find entries with name 'English'
lookup('English') // [ { scope: 'individual', code: 'eng', name: 'English', type: 'living' }, ... ]
// the following will find entries that contain the word 'English'
lookup('*English*') // <24 entries>
// the following will find entries that contain the word 'english' (case insensitive)
lookup('*english*', true) // 24 entries
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
filter |
Object | String | ||||||||||||||||||||||||||
opts |
Object | Boolean |
<nullable> |
Properties
|
- Source:
Returns:
- Type
- Array.<Object>