Class: OfflineDownload

OfflineDownload


new OfflineDownload()

Source:

Methods


<inner> createFragmentStore(manifestId)

Init databsse to store fragments

Parameters:
Name Type Description
manifestId number
Source:

<inner> createOfflineManifest(offlineManifest)

Store in database the string representation of offline manifest (with only downloaded representations)

Parameters:
Name Type Description
offlineManifest object
Source:

<inner> deleteDownload()

Delete an offline manifest (and all of its data)

Source:

<inner> downloadFromUrl(url)

Download a stream, from url of manifest

Parameters:
Name Type Description
url string
Source:

<inner> generateOfflineManifest(XMLManifest, selectedRepresentations, manifestId)

Create the parser used to convert original manifest in offline manifest Creates a JSON object that will be stored in database

Parameters:
Name Type Description
XMLManifest string
selectedRepresentations Array.<Object>
manifestId number
Source:

<inner> getDownloadProgression()

Compute the progression of download

Source:

<inner> onOriginalManifestLoaded(e)

Triggered when manifest is loaded from internet.

Parameters:
Name Type Description
e Array.<Object>
Source:

<inner> reset()

Reset

Source:

<inner> resetDownload()

Reset events listeners

Source:

<inner> resumeDownload()

Resume download of a stream

Source:

<inner> stopDownload()

Stops downloading of fragments

Source:

<inner> updateOfflineManifest(offlineManifest)

Store in database the string representation of offline manifest (with only downloaded representations)

Parameters:
Name Type Description
offlineManifest object
Source: