Class: shaka.hls.ManifestTextParser

Constructor

new ManifestTextParser()

Source:

Members

MEDIA_PLAYLIST_TAGS :Array.<string>

HLS tags that only appear on Media Playlists. Used to determine a playlist type.
Type:
  • Array.<string>
Source:

SEGMENT_TAGS :Array.<string>

HLS tags that only appear on Segments in a Media Playlists. Used to determine the start of the segments info.
Type:
  • Array.<string>
Source:

globalId_ :number

Type:
  • number
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, 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>
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