Class: MPD

MPD(config)

new MPD(config)

Parameters:
Name Type Description
config object configuration object for the manifest
Source:

Methods

(generator) createAdaptationSet(mimetype)

Parameters:
Name Type Default Description
mimetype string video/webm The MIME type of the stream
Source:
Returns:
a yielded mimeType attribute

(generator) createContentComponent(contentType, id)

Parameters:
Name Type Default Description
contentType string video The content type of the media being streams
id integer 1 The id of the content component
Source:

(generator) createMpd(videoData)

Parameters:
Name Type Description
videoData Buffer initial video data for the stream, must be less than 100kb
Source:

(generator) createPeriod(id)

Parameters:
Name Type Description
id integer the id of the period
Source:

(generator) createSegmentTemplate(videoData, timescale, duration, startNumber, media)

Parameters:
Name Type Default Description
videoData Buffer videoData to be streamed for initialization
timescale integer 1000 The timescale of the media in microseconds
duration integer 2000 The duration of the media in microseconds
startNumber integer 1 The start number of the media content
media string The media URL for update PUTs
Source:

getXMLFile() → {File}

Source:
Returns:
file - A new File named init.mpd which contains the manifest XML
Type
File

getXMLString() → {string}

Source:
Returns:
str - XML string representation of the manifest
Type
string