Class: shaka.hls.ManifestTextParser

Constructor

new ManifestTextParser()

Creates a new ManifestTextParser.
Source:

Members

(static, constant, non-null) MEDIA_PLAYLIST_TAGS :Array.<string>

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

(static, constant, non-null) 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:

(private) globalId_ :number

Type:
  • number
Source:

Methods

(static) parseTag(id, word) → (non-null) {shaka.hls.Tag}

Parses a string into an HLS Tag object.
Parameters:
Name Type Description
id number
word string
Source:
Throws:
Returns:
Type
shaka.hls.Tag

parsePlaylist(datanon-null, uri) → (non-null) {shaka.hls.Playlist}

Parameters:
Name Type Description
data ArrayBuffer
uri string
Source:
Throws:
Returns:
Type
shaka.hls.Playlist

(private) parseSegments_(linesnon-null, playlistTagsnon-null) → (non-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:
Throws:
Returns:
Type
Array.<shaka.hls.Segment>

(private) parseTag_(word) → (non-null) {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:
Throws:
Returns:
Type
shaka.hls.Tag