Members
MEDIA_PLAYLIST_TAGS :Set<string>
HLS tags that only appear on Media Playlists.
Used to determine a playlist type.
O(1) lookup set for tag classification.
Type:
- Set<string>
- Source:
SEGMENT_TAGS :Set<string>
HLS tags that only appear on Segments in a Media Playlists.
Used to determine the start of the segments info.
O(1) lookup set for tag classification.
Type:
- Set<string>
- Source:
STATIC_PATTERNS :{tagBlocks: !RegExp, valueRegex: !RegExp, attributeRegex: !RegExp, header: !RegExp}
Static pre-compiled regex patterns for maximum performance.
Shared across all parser instances.
Pre-compiled patterns eliminate repeated regex compilation during parsing.
Type:
- {tagBlocks: !RegExp, valueRegex: !RegExp, attributeRegex: !RegExp, header: !RegExp}
- Source:
Methods
parseTag(id, word) → {shaka.hls.Tag}
Parses a string into an HLS Tag object.
Parameters:
Name | Type | Description |
---|---|---|
id |
number | |
word |
string |
- Source:
Returns:
- Type
- shaka.hls.Tag
parsePlaylist(data) → {shaka.hls.Playlist}
Parameters:
Name | Type | Description |
---|---|---|
data |
BufferSource |
- Source:
Returns:
- Type
- shaka.hls.Playlist
parseSegments_(linesnon-null, startIndex, playlistTagsnon-null) → {Array<shaka.hls.Segment>}
Parses an array of strings into an array of HLS Segment objects.
Parameters:
Name | Type | Description |
---|---|---|
lines |
Array<string> | |
startIndex |
number | |
playlistTags |
Array<!shaka.hls.Tag> |
- Source:
Returns:
- Type
- Array<shaka.hls.Segment>
parseTag_(word) → {shaka.hls.Tag}
Parses a string into an HLS Tag object while tracking what id to use next.
Parameters:
Name | Type | Description |
---|---|---|
word |
string |
- Source:
Returns:
- Type
- shaka.hls.Tag